try to wait for base url

This commit is contained in:
Denys Vuika
2023-03-23 11:22:53 +00:00
parent 9c9c7dd08f
commit 48f55c604d

View File

@@ -37,7 +37,7 @@ async function globalSetup(config: FullConfig) {
const loginPage = new LoginPage(page); const loginPage = new LoginPage(page);
fs.mkdirSync(`./storage-state`, { recursive: true }); fs.mkdirSync(`./storage-state`, { recursive: true });
await page.goto(baseUrl); await page.goto(baseUrl, { waitUntil: 'load' });
await loginPage.loginUser({ username: acsAdminUser, password: acsAdminUserPassword }, { withNavigation: false, waitForLoading: true }); await loginPage.loginUser({ username: acsAdminUser, password: acsAdminUserPassword }, { withNavigation: false, waitForLoading: true });
await page.context().storageState({ path: `./storage-state/AdminUserState.json` }); await page.context().storageState({ path: `./storage-state/AdminUserState.json` });
await browser.close(); await browser.close();