From 06e04368a47291a345b5d0e0b73fd9fd14a9d270 Mon Sep 17 00:00:00 2001 From: Francisco J Lopez-Pellicer Date: Thu, 8 Oct 2026 16:35:11 +0200 Subject: [PATCH] docs(e2e): move the capas gfi comment The Capas GFI note sat on identifyAtMapCenter, which already documents the map-center callback. The toggle it describes is enableCapasGfi. The save_baseline comment described a format branch the loop does not take. --- e2e/viewer/helpers/mia.ts | 2 +- tools/bin/_profile_paths.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e/viewer/helpers/mia.ts b/e2e/viewer/helpers/mia.ts index b75f3f0..9406dca 100644 --- a/e2e/viewer/helpers/mia.ts +++ b/e2e/viewer/helpers/mia.ts @@ -320,7 +320,6 @@ export async function openPublicDashboard(page: Page): Promise { await expect(page).toHaveURL(/\/public\/dashboard/); } -/** Enable Capas GFI toggle so map clicks issue GetFeatureInfo for the loaded leaf. */ /** Drive FeatureInfo.callback at the map center (stub GetFeatureInfo, not responseCallback). */ export async function identifyAtMapCenter(page: Page): Promise { await page.evaluate(async () => { @@ -356,6 +355,7 @@ export async function identifyAtMapCenter(page: Page): Promise { }); } +/** Enable Capas GFI toggle so map clicks issue GetFeatureInfo for the loaded leaf. */ export async function enableCapasGfi(page: Page): Promise { const gfi = page.locator('#tc-slot-wlm sitna-toggle.sitmun-wlm-gfi, #tc-slot-wlm .sitmun-wlm-gfi').first(); await expect(gfi).toBeVisible({ timeout: 30_000 }); diff --git a/tools/bin/_profile_paths.py b/tools/bin/_profile_paths.py index b73e6d0..44ece26 100644 --- a/tools/bin/_profile_paths.py +++ b/tools/bin/_profile_paths.py @@ -229,7 +229,6 @@ def save_baseline(baseline_code: str, data: dict, tools_dir: Path | None = None) d = tools_dir or _TOOLS_DIR path = d / f"master-i18n.{baseline_code}.json" - # Detect format: if rows contain keys other than id and baseline_code, extract only ours entities_out: dict = {} for entity_name, entity_data in data["entities"].items(): translations_out = []