Koha-clms/t/cypress/integration/KohaTable
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
..
CirculationHistory_spec.ts Bug 40301: (bug 40299 follow-up) Add Cypress tests 2025-08-22 09:47:42 +02:00
Holdings_spec.ts Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly 2025-10-28 21:28:57 +01:00
KohaTable_spec.ts Bug 40051: Remove 'only' from KohaTable_spec.ts 2025-08-22 09:48:30 +02:00
OPACCirculationHistory_spec.ts Bug 40345: Use then to prevent async issues 2025-08-22 09:47:44 +02:00
PatronSearch_spec.ts Bug 40865: Add a cypress test 2025-10-23 23:06:39 +02:00
PendingHolds_spec.ts Bug 40180: Fix Cypress test 2025-08-22 09:47:47 +02:00