fix custom widget e2e login race
This commit is contained in:
1 file changed
+2
-1
@@ -45,8 +45,9 @@ describe("Custom JSX custom widgets", () => {
|
|||||||
await page.goto(`${baseUrl}/auth/login`);
|
await page.goto(`${baseUrl}/auth/login`);
|
||||||
await page.getByLabel("Username").fill(adminCredentials.username);
|
await page.getByLabel("Username").fill(adminCredentials.username);
|
||||||
await page.locator("#password").fill(adminCredentials.password);
|
await page.locator("#password").fill(adminCredentials.password);
|
||||||
|
const loginNavigation = page.waitForURL(baseUrl, { timeout: 15_000, waitUntil: "commit" });
|
||||||
await page.locator("css=button[type='submit']").click();
|
await page.locator("css=button[type='submit']").click();
|
||||||
await page.waitForURL(baseUrl, { timeout: 15_000 });
|
await loginNavigation;
|
||||||
|
|
||||||
await page.goto(`${baseUrl}/manage/custom-widgets/new`);
|
await page.goto(`${baseUrl}/manage/custom-widgets/new`);
|
||||||
await page.waitForURL("**/manage/custom-widgets/new", { timeout: 15_000 });
|
await page.waitForURL("**/manage/custom-widgets/new", { timeout: 15_000 });
|
||||||
|
|||||||
Reference in new issue
Block a user