mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 19:08:01 +00:00
make test less flaky
This commit is contained in:
1 file changed
+2
-2
@@ -4,7 +4,7 @@ import { classicUrl, user } from './defaults.js';
|
||||
test('PUI - Basic test via django', async ({ page }) => {
|
||||
await page.goto(`${classicUrl}/platform/`);
|
||||
await expect(page).toHaveTitle('InvenTree Demo Server');
|
||||
await page.waitForURL('**/platform/');
|
||||
await page.waitForURL('**/platform/*');
|
||||
await page.getByLabel('username').fill(user.username);
|
||||
await page.getByLabel('password').fill(user.password);
|
||||
await page.getByRole('button', { name: 'Log in' }).click();
|
||||
@@ -17,7 +17,7 @@ test('PUI - Basic test via django', async ({ page }) => {
|
||||
test('PUI - Basic test', async ({ page }) => {
|
||||
await page.goto('./platform/');
|
||||
await expect(page).toHaveTitle('InvenTree');
|
||||
await page.waitForURL('**/platform/');
|
||||
await page.waitForURL('**/platform/*');
|
||||
await page.getByLabel('username').fill(user.username);
|
||||
await page.getByLabel('password').fill(user.password);
|
||||
await page.getByRole('button', { name: 'Log in' }).click();
|
||||
|
||||
Reference in new issue
Block a user