test(harness): isolate imports and stabilize browser and DNS fixtures

This commit is contained in:
Alexandre Teixeira
2026-09-22 23:27:08 +01:00
parent 4520b4f6f0
commit 9bc1cdcab0
15 changed files with 31 additions and 164 deletions
+2 -1
View File
@@ -20,11 +20,12 @@ def _run_tile_case():
innerWidth: 1200,
innerHeight: 800,
addEventListener() {{}},
getComputedStyle() {{ return {{ display: 'block' }}; }},
}};
let sidebarVisible = false;
const sidebar = {{
classList: {{ contains(name) {{ return name === 'hidden' ? !sidebarVisible : false; }} }},
getBoundingClientRect() {{ return {{ right: 240 }}; }},
getBoundingClientRect() {{ return {{ left: 0, right: 240, width: 240, top: 0, bottom: 800 }}; }},
}};
globalThis.document = {{
readyState: 'loading',