https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44337 Bug ID: 44337 Summary: Holdings table spec fails intermittently waiting for a searchItems request after Show filters 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/KohaTable/Holdings_spec.ts fails intermittently, for example "Filters by code and description" on Koha_Main_D13 #2419 and Koha_Main_D12 #4085: CypressError: Timed out retrying after 10000ms: cy.wait() timed out waiting 10000ms for the 12th request to the route: searchItems. No request ever occurred. On a CI-like instance (Debian 13, MariaDB 11.8, Elasticsearch 8) it fails in most runs, in two places: the 12th wait of "Filters by code and description", and the 2nd wait of "Filters by code and description - BEA/Bearville vs BCH/Beachville". Both waits come straight after clicking "Show filters". The spec counts cy.wait("@searchItems") calls and assumes clicking "Show filters" always causes a new items request. It does not always: when it fails, the page state shows the click did run (Hide filters visible, filters row present, table showing 20 rows) but the browser made no further XHR (its own resource timeline lists the same 11 requests Cypress saw). So the number of requests is not a reliable signal. The spec should wait for what it actually needs: the filters row to be shown and populated, and then for the request caused by the filter it selects or types, rather than counting requests. Not yet explained: why rebuilding the table (build_items_table with destroy in catalogue_detail.inc) sometimes does not fetch again. Visually the table is correct. Test plan: 1. Start KTD (Elasticsearch, any search engine is fine). 2. Run several times: yarn cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts 3. Before the patch it fails intermittently with the error above; after the patch it passes every time. -- You are receiving this mail because: You are watching all bug changes.