Commit 2017ea3
Assert checkbox state inside waitFor in RepoRow tests
The findCheckbox helper only waited for the vscode-checkbox element to
exist, not for Lit to reflect the disabled property to an attribute, so
the enabled/disabled assertions at each call site raced the async
update. Move the assertion into the waitFor callback via an expected
state argument so the retry loop waits for reflection.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0f8ebf0f-6429-4147-b7eb-ffacf1a942da1 parent 03d6d15 commit 2017ea3
1 file changed
Lines changed: 13 additions & 9 deletions
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
418 | 426 | | |
419 | 427 | | |
420 | 428 | | |
421 | | - | |
422 | | - | |
| 429 | + | |
423 | 430 | | |
424 | 431 | | |
425 | 432 | | |
426 | 433 | | |
427 | 434 | | |
428 | 435 | | |
429 | 436 | | |
430 | | - | |
431 | | - | |
| 437 | + | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
443 | | - | |
444 | | - | |
| 449 | + | |
445 | 450 | | |
446 | 451 | | |
447 | 452 | | |
| |||
454 | 459 | | |
455 | 460 | | |
456 | 461 | | |
457 | | - | |
458 | | - | |
| 462 | + | |
459 | 463 | | |
460 | 464 | | |
0 commit comments