2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-03 18:11:10 +00:00

refactor(frontend): use central user creds (#11520)

This commit is contained in:
Matthias Mair
2026-03-14 03:29:46 +01:00
committed by GitHub
parent fda3204e33
commit d7af345e20
22 changed files with 118 additions and 105 deletions

View File

@@ -1,4 +1,5 @@
import { test } from './baseFixtures.js';
import { adminuser, stevenuser } from './defaults.js';
import { globalSearch } from './helpers.js';
import { doCachedLogin } from './login.js';
@@ -7,8 +8,7 @@ import { doCachedLogin } from './login.js';
*/
test('General - Admin Button', async ({ browser }) => {
const page = await doCachedLogin(browser, {
username: 'admin',
password: 'inventree',
user: adminuser,
url: 'company/1/details'
});
@@ -23,8 +23,7 @@ test('General - Admin Button', async ({ browser }) => {
// Tests for the global search functionality
test('General - Search', async ({ browser }) => {
const page = await doCachedLogin(browser, {
username: 'steven',
password: 'wizardstaff'
user: stevenuser
});
// Open the search drawer with a shortcut