https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42801 --- Comment #5 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 201647 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201647&action=edit Bug 42801: Fix race condition in ERM/UsageReports_spec.ts cy.get("#report_builder").contains("Submit").click(); cy.intercept("GET", "/api/v1/erm/eUsage/monthly_report/*").as( "reportRequest" ); cy.wait("@reportRequest"); We should intercept before the click. Test plan: yarn cypress run --spec t/cypress/integration/ERM/UsageReports_spec.ts Run it several times and confirm that it always passes The failure was: <testcase name="Custom reports Should show the Display by year filter when filter is required" time="0.000" classname="Should show the Display by year filter when filter is required"> <failure message="Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `reportRequest`. No request ever occurred. https://on.cypress.io/wait" type="CypressError"><![CDATA[CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `reportRequest`. No request ever occurred. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.