fix(e2e): stabilize authenticated unlock flows
This commit is contained in:
@@ -66,6 +66,7 @@ export function createWeeklyLimitChatSendResponse(
|
||||
}
|
||||
|
||||
export const paidImageMessageId = "msg_photo_paywall_001";
|
||||
export const paidImageDisplayMessageId = `server:${paidImageMessageId}:assistant`;
|
||||
export const paidImageUrl =
|
||||
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+/p9sAAAAASUVORK5CYII=";
|
||||
export const paidImageChatSendResponse = {
|
||||
|
||||
@@ -42,9 +42,7 @@ export async function dismissChatInterruptions(page: Page) {
|
||||
|
||||
export async function signInWithEmailAndOpenChat(page: Page) {
|
||||
await seedEmailSession(page);
|
||||
const historyResponsePromise = page.waitForResponse("**/api/chat/history**");
|
||||
await page.goto(defaultCharacterChatPath);
|
||||
await historyResponsePromise;
|
||||
await dismissChatInterruptions(page);
|
||||
await expect(page.getByRole("textbox", { name: "Message" })).toBeEnabled({ timeout: 20_000 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user