fix web stuck problem! go to / and not to #/login
This commit is contained in:
@@ -95,7 +95,7 @@ export class TestHelpers {
|
|||||||
reducedMotion: "reduce",
|
reducedMotion: "reduce",
|
||||||
});
|
});
|
||||||
const page = await userContext.newPage();
|
const page = await userContext.newPage();
|
||||||
await page.goto(host + "/#/login");
|
await page.goto(host);
|
||||||
|
|
||||||
await page.getByRole("link", { name: "Sign in" }).click();
|
await page.getByRole("link", { name: "Sign in" }).click();
|
||||||
|
|
||||||
@@ -103,11 +103,6 @@ export class TestHelpers {
|
|||||||
await page.getByRole("textbox", { name: "Password" }).fill(PASSWORD);
|
await page.getByRole("textbox", { name: "Password" }).fill(PASSWORD);
|
||||||
await page.getByRole("button", { name: "Sign in" }).click();
|
await page.getByRole("button", { name: "Sign in" }).click();
|
||||||
|
|
||||||
// 😤For reasons web is staying on an infinite loading page after login, so we reload the page
|
|
||||||
// Super annoying to have to wait...
|
|
||||||
await page.waitForTimeout(2000);
|
|
||||||
await page.reload();
|
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole("heading", { name: `Welcome ${username}` }),
|
page.getByRole("heading", { name: `Welcome ${username}` }),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|||||||
Reference in New Issue
Block a user