diff --git a/web/e2e/specs/live-grid-legacy-layouts.spec.ts b/web/e2e/specs/live-grid-legacy-layouts.spec.ts index 52132c82a2..9f37fe985b 100644 --- a/web/e2e/specs/live-grid-legacy-layouts.spec.ts +++ b/web/e2e/specs/live-grid-legacy-layouts.spec.ts @@ -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(); + }); +});