fix(test): resolve CI failures from the overhaul

- fixture-integrity: probe media via media-engine probeMedia (resolves the
  bundled static ffmpeg) instead of bare system ffprobe, which is ENOENT in CI;
  gate on ffmpegAvailable() like the other media tests
- a11y: regenerate a11y-baseline.json to include the mobile device keys (the
  baseline only had desktop keys, so the mobile a11y scan saw them as new)
- device-visual: tag @visual and exclude it from the PR mobile-smoke gate
  (darwin-only screenshots cannot pass on linux; nightly + update-visual-baselines
  still run it to seed linux goldens)
This commit is contained in:
SnapOtter
2026-06-20 09:54:49 +08:00
parent ad215bd6ee
commit 34b006ded7
4 changed files with 158 additions and 31 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import { expect, openSettings, test } from "./helpers";
// ---------------------------------------------------------------------------
// Mobile (Pixel 7 -- mobile-chromium)
// ---------------------------------------------------------------------------
test.describe("@mobile Device visual regression", () => {
test.describe("@mobile @visual Device visual regression", () => {
test("home page", async ({ loggedInPage: page }) => {
await page.goto("/");
await page.waitForLoadState("networkidle");
@@ -49,7 +49,7 @@ test.describe("@mobile Device visual regression", () => {
// ---------------------------------------------------------------------------
// Tablet (Galaxy Tab S9 -- tablet-chromium)
// ---------------------------------------------------------------------------
test.describe("@tablet Device visual regression", () => {
test.describe("@tablet @visual Device visual regression", () => {
test("home page", async ({ loggedInPage: page }) => {
await page.goto("/");
await page.waitForLoadState("networkidle");