Koha-clms/t/cypress
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
..
component Bug 40950: Add 'falsy' programming idiom to codespell dictionary 2025-10-06 09:15:23 -06:00
fixtures Bug 40046: Use xml and auto-select it 2025-07-07 10:20:26 -06:00
integration Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly 2025-10-09 07:25:28 -06:00
plugins Bug 38201: Cypress fixes 2025-10-02 09:40:30 -06:00
support Bug 38201: Fix Dataproviders_spec.ts 2025-10-02 09:40:34 -06:00