https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44338 Bug ID: 44338 Summary: bookingsModalDatePicker_spec: lead and trail periods hover assertion is intermittent Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org Target Milestone: --- t/cypress/integration/Circulation/bookingsModalDatePicker_spec.ts, "should handle lead and trail periods", fails intermittently with: AssertionError: Timed out retrying after 5000ms: expected '<span.flatpickr-day.flatpickr-disabled>' to have class 'booking-day--my-lead-buffer' at bookingsModalDatePicker_spec.ts:943:13 It failed on Koha_Main_D13 #2418 and #2419 (commit af3f59090e) but passed on Koha_Main_D12 #4085. There is no booking-related change between the two commits. On a CI-like instance (Debian 13, MariaDB 11.8) it failed once in five runs and passed otherwise, so it is a flake, not a date or timezone regression. It failed in the first run after the instance had been busy; the next runs passed. The failing assertion is the first check after hovering the candidate start date (T+3) in "PHASE 1: Lead period - Hover shows lead markers": T+1 is disabled but has no lead-buffer class. The spec itself notes that hover state set before the item availability has been applied is wiped by the redraw that applies it, and it waits for the availability request, not for the redraw. That is the likely cause but it is not proven. The spec should wait for a visible effect of the availability having been applied before hovering, and re-apply the hover until the markers are there, instead of hovering once and asserting. Test plan: 1. Start KTD with Debian 13, MariaDB 11.8 and Elasticsearch. 2. Run several times, straight after starting the instance and under load: yarn cypress run --spec t/cypress/integration/Circulation/bookingsModalDatePicker_spec.ts 3. All tests pass every time. -- You are receiving this mail because: You are watching all bug changes.