Phase 18: Auto timezone detection and ability to change timezone #21
@@ -12,7 +12,12 @@
|
|||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
test.describe('Admin Timezone section — 18-04 round-trip', () => {
|
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 page.goto('/admin');
|
||||||
await expect(page.getByRole('heading', { name: 'Admin Settings' })).toBeVisible();
|
await expect(page.getByRole('heading', { name: 'Admin Settings' })).toBeVisible();
|
||||||
// Wait for the Timezone section to load (requires the 18-02 GET endpoint)
|
// Wait for the Timezone section to load (requires the 18-02 GET endpoint)
|
||||||
|
|||||||
Reference in New Issue
Block a user