test(e2e): cover chat send token refresh retry
This commit is contained in:
@@ -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}$`));
|
||||
|
||||
Reference in New Issue
Block a user