Repository navigation
Commit 9b39365
committed
test(android): wait for content to render before swiping
CI showed the swipe assertion timing out with scrollY stuck at 0 on
every retry, even though the swipe call itself completed without
error. androidDevice.input.swipe() injects a raw touch event through
the OS input pipeline, independent of the CDP channel used by
setContent(), so the gesture can land before the new content is
actually composited and presented on the device screen. Wait for two
animation frames after setContent() so the swipe reliably hits the
rendered page.1 parent c658786 commit 9b39365
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
0 commit comments