test(e2e): update mock specs for splash changes

This commit is contained in:
2026-07-03 17:39:35 +08:00
parent 186b4d934d
commit 36636ad77b
3 changed files with 13 additions and 8 deletions
@@ -21,7 +21,7 @@ test("user can email login from other sign-in options and return to chat", async
await page
.getByRole("button", { name: "Sign up to unlock more features" })
.click();
await expect(page).toHaveURL(/\/auth$/);
await expect(page).toHaveURL(/\/auth(?:\?.*)?$/);
await switchToEmailSignIn(page);
const loginRequest = await submitEmailLogin(page, { expectedUrl: /\/chat$/ });
@@ -26,9 +26,8 @@ test("user can log out from the sidebar after email login", async ({
const logoutRequest = await logoutRequestPromise;
expect(logoutRequest.method()).toBe("POST");
await expect(page).toHaveURL(/\/splash$/);
await expect(page.getByRole("button", { name: "Skip" })).toBeVisible();
await expect(page).toHaveURL(/\/chat$/);
await expect(
page.getByRole("button", { name: "Login with Facebook" }),
page.getByRole("button", { name: "Sign up to unlock more features" }),
).toBeVisible();
});