Make the desktop smoke test mode-aware
The dev path (J621_DEV_SERVER) has the Vite origin and no /setup screen, so the expectations now follow the mode instead of reporting false failures.
This commit is contained in:
+4
-2
@@ -444,12 +444,14 @@ function runSmokeTest(win: BrowserWindow): void {
|
||||
})()`, true)) as Record<string, unknown>;
|
||||
|
||||
const expected: Record<string, unknown> = {
|
||||
origin: APP_ORIGIN,
|
||||
// In dev the window hosts the Vite dev server, which has no /setup
|
||||
// screen (the SPA only asks for a backend in production builds).
|
||||
origin: DEV_SERVER || APP_ORIGIN,
|
||||
title: "J621",
|
||||
assetOk: true,
|
||||
routeOk: true,
|
||||
mounted: true,
|
||||
setupOk: true,
|
||||
setupOk: !DEV_SERVER,
|
||||
storageOk: true,
|
||||
historyOk: true,
|
||||
opfsOk: true,
|
||||
|
||||
Reference in New Issue
Block a user