Files
n30nex 3b69608fd1 Simplify worldwide phone navigation and settings (0.7.3) (#27)
* Compact worldwide mobile navigation and settings (0.7.3)

* Trim obsolete chrome and check compact WebKit layouts

* Forward browser dependency flags and finish shared style cleanup

* Keep narrow labels readable and restore focus after Back

* Verify responsive restoration and retain focus after view actions

* Use readable theme colours for compact summary captions
2026-10-15 12:59:20 -04:00

12 lines
624 B
TypeScript

import type { Page } from '@playwright/test';
export async function openMapOptions(page: Page): Promise<void> {
const summary = page.locator('#layers-summary');
if (await summary.count() && await summary.getAttribute('aria-expanded') !== 'true') await summary.click();
// Interaction tests need the complete options; the layer UX test checks the collapsed default.
for (const id of ['map-detail-options', 'terrain-options', 'map-appearance']) {
const group = page.locator('#' + id);
if (await group.count() && await group.getAttribute('open') === null) await group.locator('summary').first().click();
}
}