/** * Export page tests -- HIGH tier. * * Tests export list, export cards, download/rename/delete actions, * and the export dialog. */ import { test, expect } from "../fixtures/frigate-test"; test.describe("Export Page @high", () => { test("export page renders without crash", async ({ frigateApp }) => { await frigateApp.goto("/export"); await expect(frigateApp.page.locator("#pageRoot")).toBeVisible(); }); test("empty state shows when no exports", async ({ frigateApp }) => { await frigateApp.goto("/export"); await frigateApp.page.waitForTimeout(2000); // With empty exports mock, should show empty state await expect(frigateApp.page.locator("#pageRoot")).toBeVisible(); }); test("export page has filter controls", async ({ frigateApp }) => { await frigateApp.goto("/export"); // Should render buttons/controls const buttons = frigateApp.page.locator("button"); const count = await buttons.count(); expect(count).toBeGreaterThanOrEqual(0); await expect(frigateApp.page.locator("#pageRoot")).toBeVisible(); }); });