mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
What is the problem?
The category calendar color mapping system tests are flaky. The tests
wait for `.fc-daygrid-event-harness` to appear then immediately call
`find(".fc-daygrid-event-dot")`. Since the dot element renders slightly
after its parent container, this causes intermittent
`Capybara::ElementNotFound` errors.
What is the solution?
Wait for `.fc-daygrid-event-dot` directly instead of
`.fc-daygrid-event-harness`. This ensures the target element is present
before `find()` is called, eliminating the race condition.
|
||
|---|---|---|
| .. | ||
| composer | ||
| page_objects/discourse_calendar | ||
| calendar_first_day_of_week_spec.rb | ||
| category_calendar_spec.rb | ||
| core_features_spec.rb | ||
| disable_sort_spec.rb | ||
| group_timezones_spec.rb | ||
| post_calendar_spec.rb | ||
| post_event_spec.rb | ||
| upcoming_events_spec.rb | ||