mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
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:
1 parent
311e178d0c
commit
f72bf6a774
4 files changed
+49
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user