Commit 1c1afb3
committed
fix(e2e): wait for a post-mutation paint before IME screenshots
`test_ime_clear_on_route_change` reset render_stats *before*
palette.dismiss, then waited for draw_calls > 0. An in-flight pre-dismiss
present can satisfy that wait. On Wayland, window::screenshot copies the
last presented buffer, so CI's ubuntu/tiny-skia capture still showed the
palette overlay after App.palette was already cleared.
Reset the counters after the mutation and wait for the next view+draw
(cheap app.render_stats polls, not screenshots). One capture afterward.1 parent 5ee03dc commit 1c1afb3
1 file changed
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
0 commit comments