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.
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user