mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-13 08:55:12 +02:00
test(mouse): widen hover->mouseenter wait to 10s (full-suite load flake)
test_hover_triggers_mouseenter timed out at the old 5s wait when run as part of the full e2e suite — browser startup + CPU contention occasionally push the mouseenter past the window. In isolation the event fires in well under a second (5/5), so this is load-sensitivity, not a real regression. A 10s wait absorbs it while still failing fast if mouseenter genuinely never fires.
This commit is contained in:
parent
a950537f0a
commit
c9cc0f1743
1 changed files with 5 additions and 2 deletions
|
|
@ -185,8 +185,11 @@ def test_hover_triggers_mouseenter(firefox_binary):
|
|||
# Wait for the event rather than reading immediately: under load / on a
|
||||
# virtual display the mouseenter can land a beat after hover() returns,
|
||||
# which made an instant read flaky. wait_for_function still fails (times
|
||||
# out) if mouseenter genuinely never fires.
|
||||
page.wait_for_function("() => window.__h === true", timeout=5000)
|
||||
# out) if mouseenter genuinely never fires. Timeout is generous (10s) so a
|
||||
# busy full-suite run — where browser startup + CPU contention can push
|
||||
# the event past a tight 5s window — doesn't flake; the event itself fires
|
||||
# in well under a second when run in isolation.
|
||||
page.wait_for_function("() => window.__h === true", timeout=10_000)
|
||||
|
||||
|
||||
# ────────────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue