Commit 8022f08
committed
fix: flaky tests in CI
Fix two flaky tests that were failing intermittently in CI:
1. spec/features/listing_coaches_spec.rb:2
- Changed to use a workshop with a date in the current year (beginning_of_year + 1.month)
instead of the default future date to ensure the coach is counted for the current year query
- Added 5 second wait to the expectation for page load timing
2. spec/features/admin/manage_workshop_attendances_spec.rb:25
- Added explicit wait for '.cancel_attendance' element to be present
before attempting to click it
- This ensures the element is rendered before interaction
These changes make the tests more robust in parallel CI execution where
timing and database state can vary between test runs.1 parent b381129 commit 8022f08
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments