mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-03 11:28:49 +00:00
refactor(frontend): use central user creds (#11520)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { expect, test } from './baseFixtures.js';
|
||||
import { logoutUrl } from './defaults.js';
|
||||
import { logoutUrl, noaccessuser } from './defaults.js';
|
||||
import { navigate } from './helpers.js';
|
||||
import { doLogin } from './login.js';
|
||||
|
||||
@@ -48,8 +48,7 @@ test('Login - Failures', async ({ page }) => {
|
||||
|
||||
test('Login - Change Password', async ({ page }) => {
|
||||
await doLogin(page, {
|
||||
username: 'noaccess',
|
||||
password: 'youshallnotpass'
|
||||
user: noaccessuser
|
||||
});
|
||||
|
||||
// Navigate to the 'change password' page
|
||||
@@ -90,8 +89,7 @@ test('Login - Change Password', async ({ page }) => {
|
||||
// Tests for assigning MFA tokens to users
|
||||
test('Login - MFA - TOTP', async ({ page }) => {
|
||||
await doLogin(page, {
|
||||
username: 'noaccess',
|
||||
password: 'youshallnotpass'
|
||||
user: noaccessuser
|
||||
});
|
||||
|
||||
await navigate(page, 'settings/user/security', { waitUntil: 'networkidle' });
|
||||
|
||||
Reference in New Issue
Block a user