Koha-clms/t/cypress
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
..
fixtures Bug 40046: Use xml and auto-select it 2025-07-10 22:47:30 +02:00
integration Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly 2025-10-28 21:28:57 +01:00
plugins Revert "Bug 15516: Fix Cypress test" 2025-09-25 15:55:58 +02:00
support Bug 40346: Introduce loginOpac and visitOpac - Cypress 2025-08-22 09:47:40 +02:00