https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40383 --- Comment #57 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 199475 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199475&action=edit Bug 40383: (follow-up) Fix CI timing races in EdifactModal search tests Replace cy.type() with invoke+trigger to avoid racing against the 500ms debounce in edifact_interchange.js. Add cy.wait("@ediMsg") in the Search Functionality beforeEach so initializeSearch() is guaranteed to have run before interaction begins. Remove all arbitrary cy.wait(N) calls in favour of condition-based assertions that let Cypress retry until the DOM state is reached: - Modal close/escape tests: drop the force-Bootstrap-close fallback; the timeout:5000 assertions are sufficient and correctly fail if the close action genuinely doesn't work. - Expand-all: classList.add("show") is synchronous so no wait is needed; replace the always-passing conditional block with a real assertion. - Collapse-all / individual toggle: Bootstrap.hide() is async, but Cypress retry handles that without a hardcoded sleep. -- You are receiving this mail because: You are watching all bug changes.