refactor(e2e): organize fixtures by feature

This commit is contained in:
2026-07-16 11:49:58 +08:00
parent 764bb5a862
commit e730799aa5
28 changed files with 521 additions and 1335 deletions
+10
View File
@@ -0,0 +1,10 @@
import { expect, type Page } from "@playwright/test";
export async function expectInsufficientCreditsDialog(page: Page) {
const dialog = page.getByRole("dialog", { name: "Not enough credits" });
await expect(dialog).toBeVisible();
await expect(dialog.getByText("Balance")).toBeVisible();
await expect(dialog.getByText("Required")).toBeVisible();
await expect(dialog.getByText("Still needed")).toBeVisible();
return dialog;
}