[ACS-4922] Try using a promise

This commit is contained in:
KikoUK
2023-03-23 15:16:32 +00:00
parent 62747ee441
commit 5285d86066

View File

@@ -37,7 +37,8 @@ async function globalSetup(config: FullConfig) {
const loginPage = new LoginPage(page);
fs.mkdirSync(`./storage-state`, { recursive: true });
await page.waitForURL(baseUrl, { timeout: 300000 });
//await page.waitForURL(baseUrl, { timeout: 300000 });
await new Promise((resolve) => setTimeout(resolve, 60000));
await page.goto(baseUrl);
await loginPage.loginUser({ username: acsAdminUser, password: acsAdminUserPassword }, { withNavigation: false, waitForLoading: true });
await page.context().storageState({ path: `./storage-state/AdminUserState.json` });