Koha-clms/t/cypress/integration
Jonathan Druart a9bc9c79ce
Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly
There is a JS warning raised by DT which makes the tests fail:
```
The following error originated from your application code, not from Cypress.

  > DataTables warning detected in log: "DataTables warning: table id=holdings_table - Ajax error. For more information about this error, please see https://datatables.net/tn/7"
```

It is caused by a 404 returned by the API, because DT receives the
response during the afterEach (after the objects have been deleted)

We must wait for the responses when needed.

Test plan:
  cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts
should still pass

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit de85f171fd)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-10-28 21:28:57 +01:00
..
Acquisitions Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
Admin Revert "Bug 37917: Add some wait time to RecordSources_spec.ts for the intercepted request responses" 2024-10-11 11:13:48 +02:00
Auth Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests 2025-07-10 22:47:37 +02:00
ERM Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
Islands Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests 2025-07-10 22:47:37 +02:00
KohaTable Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly 2025-10-28 21:28:57 +01:00
Patron Bug 40320: Use insertSamplePatron 2025-10-23 23:06:44 +02:00
Preservation Bug 37930: Extend new AV logic to the Preservation module 2025-04-25 08:46:57 +02:00
Tools Bug 40046: Use xml and auto-select it 2025-07-10 22:47:30 +02:00
t Bug 40345: Add insertSamplePatron 2025-08-22 09:47:43 +02:00
AdditionalFields_spec.ts Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
InfiniteScrollSelect_spec.ts Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
Toolbar_spec.ts Bug 40430: Fix Toolbar_spec.ts 2025-08-22 09:47:45 +02:00
flatpickr_spec.ts Revert "Bug 37493: [DONT PUSH] Test only - Force test fail" 2024-09-02 17:21:50 +02:00