mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-12-04 03:07:08 +03:00
add mobile test to legacy layouts spec
This commit is contained in:
@@ -155,3 +155,33 @@ test.describe("Live grid 0.18 layouts @critical", () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test.describe("Live grid 0.18 layouts on mobile @critical @mobile", () => {
|
||||
test("a group with Birdseye shows every tile in the static grid", async ({
|
||||
frigateApp,
|
||||
}) => {
|
||||
test.skip(!frigateApp.isMobile, "Mobile-only");
|
||||
|
||||
const { cameras } = SCENARIOS[0];
|
||||
await frigateApp.installDefaults({
|
||||
config: {
|
||||
camera_groups: { legacy: { cameras, icon: "LuCar", order: 1 } },
|
||||
},
|
||||
});
|
||||
await frigateApp.goto("/?group=legacy");
|
||||
const live = new LivePage(frigateApp.page, false);
|
||||
for (const camera of cameras.filter((name) => name !== "birdseye")) {
|
||||
await expect(live.cameraCard(camera).first()).toBeVisible({
|
||||
timeout: 10_000,
|
||||
});
|
||||
}
|
||||
|
||||
// the static grid never reads a stored layout, so nothing can cover Birdseye
|
||||
await expect(frigateApp.page.locator(".react-grid-item")).toHaveCount(0);
|
||||
await expect(
|
||||
frigateApp.page.locator(
|
||||
"#pageRoot .aspect-video:not([data-camera]):not(:has([data-camera]))",
|
||||
),
|
||||
).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user