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
@@ -5,6 +5,7 @@ import { paidVoiceMessageId } from "../../fixtures/test-data";
import {
clearBrowserState,
expectInsufficientCreditsDialog,
expectVipChatSubscriptionUrl,
signInWithEmailAndOpenChat,
} from "../../fixtures/test-helpers";
@@ -44,5 +45,5 @@ test("user sees insufficient credits when unlocking a paid voice message and can
.getByRole("button", { name: "Top up now" })
.click();
await expect(page).toHaveURL(/\/subscription\?type=vip&returnTo=chat$/);
await expectVipChatSubscriptionUrl(page);
});