https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44337 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 212800 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212800&action=edit Bug 44337: Fix intermittent failures of the Holdings table Cypress spec "Filters by code and description" and "Filters by code and description - BEA/Bearville vs BCH/Beachville" fail intermittently with cy.wait() timed out waiting 10000ms for the Nth request to the route: searchItems. No request ever occurred. The filters of the table are (re)built by _dt_add_filters, which replaces the filter row's <select> elements, once after the table is created and again each time a draw shows or hides columns (column-visibility.dt, e.g. columns with no data). cy.wait("@searchItems") resolves when the response has been received, which can be before the browser has drawn the result and rebuilt the filters. A select made in between acts on an element that is about to be replaced, nothing is filtered, and the request the spec then waits for never happens. Also stop clicking "Show filters" in these two tests. It destroys and rebuilds the table, which is what the "Show filters" test is for, and the spec assumed it always caused a new request, which it does not. - Show the filters from the start with AlwaysShowHoldingsTableFilters (restored in afterEach) - Wait for the table to be idle (not drawing, request complete) before using a filter Test plan: 1. Start KTD, e.g. ktd --search-engine es8 --selenium up -d 2. Run several times: yarn cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts 3. Before the patch it fails in most runs on a CI-like instance (Debian 13, MariaDB 11.8): "12th request" or "2nd request" never occurred 4. After the patch all 6 tests pass every time Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.