refactor(e2e): organize fixtures by feature
This commit is contained in:
@@ -24,9 +24,7 @@ test.beforeEach(async ({ baseURL, context, page }) => {
|
||||
});
|
||||
});
|
||||
|
||||
test("guest hits the chat quantity limit and can continue to login and subscription", async ({
|
||||
page,
|
||||
}) => {
|
||||
test("guest uses the shared chat limit top-up flow", async ({ page }) => {
|
||||
await enterChatFromSplash(page);
|
||||
await dismissChatInterruptions(page);
|
||||
|
||||
@@ -81,9 +79,10 @@ test("guest hits the chat quantity limit and can continue to login and subscript
|
||||
expect(limitTriggeredAt).toBe(mockedLimitTriggerAt);
|
||||
|
||||
await expect(quantityLimitBanner).toBeVisible();
|
||||
await expect(messageInput).toHaveCount(0);
|
||||
|
||||
const topUpButton = page.getByRole("button", {
|
||||
await expect(
|
||||
quantityLimitBanner.getByText("Free chats refresh every day."),
|
||||
).toBeVisible();
|
||||
const topUpButton = quantityLimitBanner.getByRole("button", {
|
||||
name: "Top up credits to continue",
|
||||
});
|
||||
await expect(topUpButton).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user