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
+4 -4
View File
@@ -6,6 +6,8 @@ import {
completeVipPayment,
dismissChatInterruptions,
enterChatFromSplash,
expectAuthRedirectToVipChatSubscription,
expectVipChatSubscriptionUrl,
submitEmailLogin,
switchToEmailSignIn,
} from "../../fixtures/test-helpers";
@@ -88,13 +90,11 @@ test("guest hits the chat quantity limit and can continue to login and subscript
await topUpButton.click();
await expect(page).toHaveURL(/\/auth\?redirect=/);
expect(new URL(page.url()).searchParams.get("redirect")).toBe(
"/subscription?type=vip&returnTo=chat",
);
expectAuthRedirectToVipChatSubscription(page);
await switchToEmailSignIn(page);
await submitEmailLogin(page);
await expect(page).toHaveURL(/\/subscription\?type=vip&returnTo=chat$/);
await expectVipChatSubscriptionUrl(page);
await completeVipPayment(page);