Koha-clms/t/cypress/integration/KohaTable
Jonathan Druart de85f171fd
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>
2025-10-09 07:25:28 -06:00
..
CirculationHistory_spec.ts Bug 40301: (bug 40299 follow-up) Add Cypress tests 2025-07-21 14:01:24 -06:00
Holdings_spec.ts Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly 2025-10-09 07:25:28 -06:00
KohaTable_spec.ts Bug 40051: Remove 'only' from KohaTable_spec.ts 2025-08-01 13:22:44 -06:00
OPACCirculationHistory_spec.ts Bug 40345: Use then to prevent async issues 2025-07-21 14:01:27 -06:00
PatronSearch_spec.ts Bug 40865: Add a cypress test 2025-09-26 10:36:55 -06:00
PendingHolds_spec.ts Bug 40180: Fix Cypress test 2025-07-23 09:34:52 +02:00