mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Add timeout to login wait for
This commit is contained in:
@ -5,7 +5,7 @@ export default defineConfig({
|
|||||||
fullyParallel: true,
|
fullyParallel: true,
|
||||||
timeout: 90000,
|
timeout: 90000,
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 3 : 0,
|
||||||
workers: process.env.CI ? 3 : undefined,
|
workers: process.env.CI ? 3 : undefined,
|
||||||
reporter: process.env.CI ? [['html', { open: 'never' }], ['github']] : 'list',
|
reporter: process.env.CI ? [['html', { open: 'never' }], ['github']] : 'list',
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ export const doQuickLogin = async (
|
|||||||
await page.goto(`${url}/login/?login=${username}&password=${password}`);
|
await page.goto(`${url}/login/?login=${username}&password=${password}`);
|
||||||
await page.waitForURL('**/platform/home');
|
await page.waitForURL('**/platform/home');
|
||||||
|
|
||||||
await page.getByLabel('navigation-menu').waitFor();
|
await page.getByLabel('navigation-menu').waitFor({ timeout: 5000 });
|
||||||
await page.getByText(/InvenTree Demo Server -/).waitFor();
|
await page.getByText(/InvenTree Demo Server -/).waitFor();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user