Repository navigation
Commit 7e82663
authored
test(DropdownMenu): the lazy sheet case waits for its rows by frames (#10643)
test(DropdownMenu): the lazy sheet case waits for its rows by frames
The keyboard-open case waited for the sheet's rows with findByRole,
whose one-second budget is wall-clock time. A worker that stalls while
the rows load comes back with that timeout due beside React's reveal
timer, and Node runs the timeout before React's render. So the case
failed with no product fault. It now reads the row once a frame for up
to 120 frames, with React outside act as in a findBy query, and fails
by name if the rows never render.1 parent 4082ba7 commit 7e82663
1 file changed
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| |||
156 | 179 | | |
157 | 180 | | |
158 | 181 | | |
159 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
160 | 187 | | |
161 | 188 | | |
162 | 189 | | |
| |||
0 commit comments