mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-09 03:03:41 +00:00
test: fix basic login flow
This commit is contained in:
@@ -36,8 +36,8 @@ export const doLogin = async (page: Page, options?: LoginOptions) => {
|
|||||||
|
|
||||||
await page.waitForURL('**/web/login');
|
await page.waitForURL('**/web/login');
|
||||||
|
|
||||||
await page.getByLabel('username').fill(username);
|
await page.getByRole('textbox', { name: 'login-username' }).fill(username);
|
||||||
await page.getByLabel('password').fill(password);
|
await page.getByRole('textbox', { name: 'login-password' }).fill(password);
|
||||||
|
|
||||||
await page.waitForTimeout(100);
|
await page.waitForTimeout(100);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user