add mobile test to legacy layouts spec

This commit is contained in:
Josh Hawkins
2026-12-03 09:31:03 -06:00
parent 18bbd2f0ae
commit 7008be001b
@@ -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();
});
});