From f0e3bcdac92e296cc90d29f91e9ba42879dd97c9 Mon Sep 17 00:00:00 2001 From: yoniebans Date: Tue, 25 Aug 2026 09:47:23 +0300 Subject: [PATCH] fix(install-e2e): reach Settings through the late-mounting onboarding overlay The overlay mounts in phases (boot-progress card, then the provider picker) and the settings gear reports visible while sitting under it, so a one-shot dismiss probe and a visibility gate both race it. Alternate short-timeout dismiss clicks with settings clicks until a settings click lands; a landed click is proof the overlay is gone. Also pick the window that renders the app UI instead of trusting firstWindow(), which can return a helper webContents. --- tests/install/e2e-assets/drive-update.cjs | 105 ++++++++++++------ tests/install/e2e-assets/launch-from-spec.mjs | 82 ++++++++++---- 2 files changed, 134 insertions(+), 53 deletions(-) diff --git a/tests/install/e2e-assets/drive-update.cjs b/tests/install/e2e-assets/drive-update.cjs index 25d436072d..a58919b51d 100644 --- a/tests/install/e2e-assets/drive-update.cjs +++ b/tests/install/e2e-assets/drive-update.cjs @@ -93,7 +93,28 @@ async function main() { timeout: 120_000 }) - const page = await app.firstWindow({ timeout: 120_000 }) + // firstWindow() can grab a helper webContents (wake indicator etc.), not + // the main app window. Pick the window that actually renders UI (has a + //