mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-09 16:47:37 +03:00
24 lines
788 B
TypeScript
24 lines
788 B
TypeScript
|
|
/**
|
||
|
|
* Config Editor page tests -- MEDIUM tier.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { test, expect } from "../fixtures/frigate-test";
|
||
|
|
|
||
|
|
test.describe("Config Editor @medium", () => {
|
||
|
|
test("config editor page renders without crash", async ({ frigateApp }) => {
|
||
|
|
await frigateApp.goto("/config");
|
||
|
|
// Monaco editor may take time to load
|
||
|
|
await frigateApp.page.waitForTimeout(3000);
|
||
|
|
await expect(frigateApp.page.locator("body")).toBeVisible();
|
||
|
|
});
|
||
|
|
|
||
|
|
test("config editor has save button", async ({ frigateApp }) => {
|
||
|
|
await frigateApp.goto("/config");
|
||
|
|
await frigateApp.page.waitForTimeout(3000);
|
||
|
|
// Should have at least a save or action button
|
||
|
|
const buttons = frigateApp.page.locator("button");
|
||
|
|
const count = await buttons.count();
|
||
|
|
expect(count).toBeGreaterThan(0);
|
||
|
|
});
|
||
|
|
});
|