Commit 33827b8
authored
Fix pipeline.cy.ts flakes via launcher pinning and form-array sync (#3389)
- createPipeline and focusPipelineEditor clicked launcher cards
without pinning to the active main-area widget. JupyterLab keeps
launchers in the DOM until Lumino disposes them, so the click
could land on a card under a widget that was already retiring.
Apply the active-widget pattern from the prior pythoneditor fix
and centralize it in clickActiveLauncherCard. resetJupyterLab and
createNewScriptEditor now share the same VISIBLE_LAUNCHER_SELECTOR
constant.
- Add-then-type sequences in the complex-snapshot test typed into
form-array inputs that React had not yet mounted. Add a
formArrayAdd command that counts inputs under the parent before
the Add click and waits for the count to grow before typing.
Replaces six occurrences across the test.
- The complex-snapshot test wrote complex.pipeline after navigating
into pipelines/, so the first directory listing did not contain
it and openFile relied on the next file-browser poll to self-heal.
Reorder so writeFile runs before openDirectory.
---------
Signed-off-by: Luciano Resende <lresende@apple.com>1 parent 0fba932 commit 33827b8
3 files changed
Lines changed: 57 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
25 | 42 | | |
26 | 43 | | |
27 | 44 | | |
| |||
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 173 | + | |
159 | 174 | | |
160 | 175 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 176 | + | |
164 | 177 | | |
165 | 178 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 179 | + | |
169 | 180 | | |
170 | 181 | | |
171 | 182 | | |
| |||
178 | 189 | | |
179 | 190 | | |
180 | 191 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 192 | + | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
| |||
252 | 261 | | |
253 | 262 | | |
254 | 263 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 264 | + | |
258 | 265 | | |
259 | 266 | | |
260 | 267 | | |
| |||
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 292 | + | |
300 | 293 | | |
301 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
302 | 315 | | |
303 | 316 | | |
304 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 192 | + | |
| 193 | + | |
195 | 194 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 195 | + | |
201 | 196 | | |
202 | 197 | | |
203 | 198 | | |
| |||
231 | 226 | | |
232 | 227 | | |
233 | 228 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
245 | 232 | | |
| 233 | + | |
246 | 234 | | |
247 | 235 | | |
248 | 236 | | |
249 | 237 | | |
250 | 238 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 239 | | |
| 240 | + | |
| 241 | + | |
263 | 242 | | |
264 | 243 | | |
265 | 244 | | |
| |||
0 commit comments