Phase 20: Admin Member Editor & Form Declutter #25
@@ -20,6 +20,10 @@ test.describe('Admin Timezone section — 18-04 round-trip', () => {
|
||||
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();
|
||||
// Phase 17 (D-10) reworked /admin into a two-tab layout; the Timezone section
|
||||
// now lives in the "Settings" tab panel, which is hidden until selected. Open
|
||||
// it before asserting the section.
|
||||
await page.getByRole('tab', { name: 'Settings' }).click();
|
||||
// Wait for the Timezone section to load (requires the 18-02 GET endpoint)
|
||||
const tzSection = page.getByRole('region', { name: 'Timezone' });
|
||||
await expect(tzSection).toBeVisible({ timeout: 15_000 });
|
||||
@@ -98,6 +102,8 @@ test.describe('Admin Timezone section — 18-04 round-trip', () => {
|
||||
// Reload and verify persistence
|
||||
await page.reload();
|
||||
await expect(page.getByRole('heading', { name: 'Admin Settings' })).toBeVisible();
|
||||
// Reload resets to the default "Members & Accounts" tab — re-open Settings.
|
||||
await page.getByRole('tab', { name: 'Settings' }).click();
|
||||
await expect(tzSection).toBeVisible({ timeout: 15_000 });
|
||||
const inputAfterReload = page.getByRole('combobox', { name: 'Household timezone' });
|
||||
await expect(inputAfterReload).toHaveValue('America/Chicago');
|
||||
|
||||
Reference in New Issue
Block a user