test(e2e): update specs for multi-character routes
This commit is contained in:
@@ -3,6 +3,7 @@ import { expect, test } from "@playwright/test";
|
||||
import { mockCoreApis } from "@e2e/fixtures/api-mocks";
|
||||
import {
|
||||
clearBrowserState,
|
||||
defaultCharacterChatUrl,
|
||||
enterChatFromSplash,
|
||||
submitEmailLogin,
|
||||
switchToEmailSignIn,
|
||||
@@ -24,7 +25,9 @@ test("user can email login from other sign-in options and return to chat", async
|
||||
await expect(page).toHaveURL(/\/auth(?:\?.*)?$/);
|
||||
|
||||
await switchToEmailSignIn(page);
|
||||
const loginRequest = await submitEmailLogin(page, { expectedUrl: /\/chat$/ });
|
||||
const loginRequest = await submitEmailLogin(page, {
|
||||
expectedUrl: defaultCharacterChatUrl,
|
||||
});
|
||||
expect(["desktop", "android"]).toContain(loginRequest?.postDataJSON().platform);
|
||||
|
||||
await expect(page.getByRole("textbox", { name: "Message" })).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user