mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
try to wait for base url
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user