mirror of
https://github.com/n30nex/CartoLite-Server.git
synced 2026-10-16 13:49:54 +00:00
* 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
12 lines
624 B
TypeScript
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();
|
|
}
|
|
}
|