From 0cd1c4cc7e8449b3706f450d7f8b4c5bc5cc32b0 Mon Sep 17 00:00:00 2001 From: yoniebans Date: Mon, 7 Sep 2026 09:55:41 +0200 Subject: [PATCH] fix(install-e2e): dispatchEvent fallback when the picker click point is swallowed On the Setup.exe-install arm the provider picker's dismiss button resolves visible/enabled/stable but the OS-level click point lands on a container that intercepts the pointer; two consecutive runs failed the leg this way while the script-install sibling passed. From iteration 3 the loop fires the DOM click directly on the button, bypassing hit-testing; real clicks keep priority for the first two iterations. --- tests/install/e2e-assets/drive-update.cjs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/install/e2e-assets/drive-update.cjs b/tests/install/e2e-assets/drive-update.cjs index edf4838e1b..0327869018 100644 --- a/tests/install/e2e-assets/drive-update.cjs +++ b/tests/install/e2e-assets/drive-update.cjs @@ -193,6 +193,27 @@ async function main() { log(`[overlay] iter ${iter} dismiss click failed: ${brief(e)}`) } } + // Escalation: on some runs the picker's button is actionable but the + // OS-level click point lands on a container that swallows the pointer + // (observed twice on the Setup.exe-install arm). dispatchEvent fires + // the DOM handler directly, bypassing hit-testing — only after real + // clicks have had two full iterations to land. + if (iter >= 3) { + for (const make of laterLocators) { + try { + const el = make(page).first() + if (await el.isVisible({ timeout: 500 })) { + await el.dispatchEvent('click') + log('dismissed onboarding overlay (dispatchEvent fallback)') + await page.waitForTimeout(2500) + await shot(page, '01b-onboarding-dismissed') + break + } + } catch (e) { + log(`[overlay] iter ${iter} dispatch fallback failed: ${brief(e)}`) + } + } + } for (const make of settingsLocators) { try { await make(page).first().click({ timeout: 2_500 })