From 7008be001b4bd95f547c5b3502b7223a7aade9c5 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 3 Dec 2026 09:31:03 -0600 Subject: [PATCH] add mobile test to legacy layouts spec --- .../specs/live-grid-legacy-layouts.spec.ts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) 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(); + }); +});