Commit a2c6f52
committed
web: Fix flakiness of mouse_wheel_avm2
wdio was randomly causing the browser to fire pointerenter and
pointerleave events, which resulted in the test being flaky.
When pointerleave event was sent before moving the mouse, there was no
hovered object and scroll was not dispatched to the object it should
have been.
This patch uses wdio's .moveTo() to update the hover before dispatching
scroll event which fixes this issue.1 parent c174fff commit a2c6f52
File tree
1 file changed
+6
-9
lines changed- web/packages/selfhosted/test/integration_tests/mouse_wheel_avm2
1 file changed
+6
-9
lines changedLines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | | - | |
| 29 | + | |
25 | 30 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
0 commit comments