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

This commit is contained in:
Matthias Mair authored and GitHub committed 2026-03-14 13:29:46 +11:00
1 parent fda3204e33
commit d7af345e20
22 files changed
+118 -105

No files matched your search

+3 -4
View File
@@ -1,12 +1,12 @@
/** Unit tests for form validation, rendering, etc */
import test from 'playwright/test';
import { stevenuser } from './defaults';
import { navigate } from './helpers';
import { doCachedLogin } from './login';
test('Forms - Stock Item Validation', async ({ browser }) => {
const page = await doCachedLogin(browser, {
username: 'steven',
password: 'wizardstaff',
user: stevenuser,
url: 'stock/location/index/stock-items'
});
@@ -82,8 +82,7 @@ test('Forms - Stock Item Validation', async ({ browser }) => {
test('Forms - Supplier Validation', async ({ browser }) => {
const page = await doCachedLogin(browser, {
username: 'steven',
password: 'wizardstaff',
user: stevenuser,
url: 'purchasing/index/suppliers'
});
await page.waitForURL('**/purchasing/index/**');