test: isolate GNSS first-fetch recovery from persisted fixtures

This commit is contained in:
Mazeyar Moeini Feizabadi committed 2026-10-13 21:51:41 +02:00
1 parent a1786f162c
commit a922d71120
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -724,6 +724,9 @@ async function main() {
const retry = await browser.newPage();
await retry.setViewport({ width: 1440, height: 900 });
retry.on('pageerror', (e) => errors.push(e.message));
// Pages share the disposable test context's storage. Start this one cold,
// so a previous fixture cannot auto-enable GNSS before the START test.
await retry.evaluateOnNewDocument(() => localStorage.clear());
await stubRoute(retry, { initialFailures: 1, stale: false });
await boot(retry, { lon: 18.6, lat: 54.6, height: 450_000 });
await showLayerRow(retry);