mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 10:34:34 +00:00
refactor(frontend): use central user creds (#11520)
This commit is contained in:
1 parent
fda3204e33
commit
d7af345e20
22 files changed
+118
-105
No files matched your search
@@ -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/**');
|
||||
|
||||
Reference in new issue
Block a user