fix(qa): keep routine map checks keyless

Record keyless launch instructions without changing app defaults.
Block Google tile and token fallback requests in routine CCTV checks;
add a guarded startup check for both engines.
This commit is contained in:
German Khokhlov committed 2026-10-28 23:33:15 +04:00
1 parent 311e178d0c
commit f72bf6a774
4 files changed
+49 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
/** Install before navigation, without intercepting workers or ordinary tiles. */
export async function blockPaidQaMaps(page, { allowPaidMaps = false } = {}) {
if (allowPaidMaps) return;
const session = await page.createCDPSession();
await session.send('Network.enable');
await session.send('Network.setBlockedURLs', {
urls: [
'*://tile.googleapis.com/*',
'*://*.googleapis.com/*3dtiles*',
'*://api.cesium.com/v1/assets/2275207/*',
'*/api/google/tiles*',
],
});
return session;
}