Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5acae2a1c | ||
|
|
56e61253a5 | ||
|
|
718f089c9f |
No files matched your search
@@ -41,6 +41,11 @@ jobs:
|
||||
pnpm run predev
|
||||
|
||||
- name: Run Playwright tests
|
||||
env:
|
||||
# Prevent Firefox from loading the AT-SPI/MSAA accessibility bridge on
|
||||
# Linux CI — without this, Firefox hangs for ~20 min waiting for a bus
|
||||
# that doesn't exist on ubuntu-latest runners.
|
||||
NO_AT_BRIDGE: ${{ matrix.browser == 'firefox' && '1' || '0' }}
|
||||
run: pnpm test:e2e --project=${{ matrix.browser }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "worldwideview",
|
||||
"version": "2.15.15",
|
||||
"version": "2.15.16",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "[email protected]",
|
||||
|
||||
@@ -41,9 +41,15 @@ export default defineConfig({
|
||||
},
|
||||
{
|
||||
name: 'firefox',
|
||||
use: {
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
storageState: 'playwright/.auth/user.json'
|
||||
storageState: 'playwright/.auth/user.json',
|
||||
launchOptions: {
|
||||
firefoxUserPrefs: {
|
||||
// Disable MSAA/AT-SPI accessibility layer — causes hangs on Linux CI
|
||||
'accessibility.force_disabled': 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -129,15 +129,27 @@ export function AppShell() {
|
||||
console.log("[AppShell] Platform Ready. Waiting for globe tiles...");
|
||||
};
|
||||
|
||||
// Start boot sequence when globe tiles are loaded
|
||||
const unsubGlobe = dataBus.on("globeReady", () => {
|
||||
console.log("[AppShell] Globe ready — starting boot sequence.");
|
||||
// Guard so boot only starts once regardless of which trigger fires first.
|
||||
let bootStarted = false;
|
||||
const startBootOnce = (reason: string) => {
|
||||
if (bootStarted) return;
|
||||
bootStarted = true;
|
||||
console.log(`[AppShell] Starting boot sequence (${reason}).`);
|
||||
boot.startBoot();
|
||||
});
|
||||
};
|
||||
|
||||
// Primary trigger: globe signals it is ready.
|
||||
const unsubGlobe = dataBus.on("globeReady", () => startBootOnce("globeReady"));
|
||||
|
||||
// Safety fallback: if the globe never initialises (e.g. WebGL unavailable
|
||||
// in headless CI environments), force the boot sequence after 20 s so the
|
||||
// app still reaches the "ready" state and tests are not left hanging.
|
||||
const safetyTimer = setTimeout(() => startBootOnce("safety-timeout"), 20_000);
|
||||
|
||||
startPlatform();
|
||||
|
||||
return () => {
|
||||
clearTimeout(safetyTimer);
|
||||
unsubGlobe();
|
||||
boot.cleanup();
|
||||
pluginManager.destroy();
|
||||
|
||||
Reference in new issue
Block a user