test(e2e): cover chat send token refresh retry

This commit is contained in:
2026-07-02 12:53:42 +08:00
parent 51987882eb
commit d8a28bb438
8 changed files with 153 additions and 12 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import {
dismissChatInterruptions,
enterChatFromSplash,
expectInsufficientCreditsDialog,
expectVipChatSubscriptionUrl,
submitEmailLogin,
switchToEmailSignIn,
} from "../../fixtures/test-helpers";
@@ -77,7 +78,7 @@ test("guest can unlock a paid image after email login and subscription payment",
.getByRole("button", { name: "Top up now" })
.click();
await expect(page).toHaveURL(/\/subscription\?type=vip&returnTo=chat$/);
await expectVipChatSubscriptionUrl(page);
await completeVipPayment(page);
await expect(page).toHaveURL(new RegExp(`/chat/image/${paidImageMessageId}$`));