mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-09 16:47:37 +03:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
|
|
/**
|
||
|
|
* 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();
|
||
|
|
});
|
||
|
|
});
|