fix web stuck problem! go to / and not to #/login

This commit is contained in:
Valere
2026-04-07 13:43:19 +02:00
parent 4211405e7b
commit 24e721f572

View File

@@ -95,7 +95,7 @@ export class TestHelpers {
reducedMotion: "reduce",
});
const page = await userContext.newPage();
await page.goto(host + "/#/login");
await page.goto(host);
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("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(
page.getByRole("heading", { name: `Welcome ${username}` }),
).toBeVisible();