diff --git a/apps/pwa/e2e/timezone-verify.spec.ts b/apps/pwa/e2e/timezone-verify.spec.ts index 31e2df2..8fca3be 100644 --- a/apps/pwa/e2e/timezone-verify.spec.ts +++ b/apps/pwa/e2e/timezone-verify.spec.ts @@ -12,7 +12,12 @@ import { test, expect } from '@playwright/test'; test.describe('Admin Timezone section — 18-04 round-trip', () => { - test.beforeEach(async ({ page }) => { + test.beforeEach(async ({ page }, testInfo) => { + // Desktop-only: the admin timezone UI is desktop-focused, and these tests mutate + // the single household_timezone row. global-setup resets that row once per run, so + // running on multiple profiles lets one project's save leak into another project's + // first-run assertions. Restricting to one project keeps the shared state coherent. + test.skip(testInfo.project.name !== 'desktop', 'Admin timezone UI is desktop-only'); await page.goto('/admin'); await expect(page.getByRole('heading', { name: 'Admin Settings' })).toBeVisible(); // Wait for the Timezone section to load (requires the 18-02 GET endpoint)