Koha-clms/t/cypress/integration
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
..
Acquisitions Bug 38201: Fix cypress tests 2025-10-02 09:40:02 -06:00
Admin Bug 38201: Cypress fixes 2025-10-02 09:40:27 -06:00
Auth Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests 2025-07-08 15:42:03 -06:00
ERM Bug 38201: Fix Dataproviders_spec.ts 2025-10-02 09:40:34 -06:00
Islands Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests 2025-07-08 15:42:03 -06:00
KohaTable Bug 40981: Prevent KohaTable/Holdings_spec.ts to fail randomly 2025-10-09 07:25:28 -06:00
Patron Bug 40320: Use insertSamplePatron 2025-09-29 14:02:29 -06:00
Preservation Bug 38201: Remove DT warnings from Cypress tests 2025-10-02 09:40:34 -06:00
Tools Bug 40046: Use xml and auto-select it 2025-07-07 10:20:26 -06:00
t Bug 40345: Add insertSamplePatron 2025-07-21 14:01:25 -06:00
AdditionalFields_spec.ts Bug 38201: Update Cypress tests 2025-10-02 09:39:10 -06:00
Breadcrumbs_spec.ts Bug 38201: Add VueFramework cypress tests 2025-10-02 09:40:16 -06:00
InfiniteScrollSelect_spec.ts Bug 38201: Fix InfiniteScrollSelect_spec.ts 2025-10-04 09:28:21 -06:00
Toolbar_spec.ts Bug 40430: Fix Toolbar_spec.ts 2025-07-21 14:01:28 -06:00
VueFramework_spec.ts Bug 38201: Cypress fixes 2025-10-02 09:40:30 -06:00
flatpickr_spec.ts Revert "Bug 37493: [DONT PUSH] Test only - Force test fail" 2024-09-02 17:21:50 +02:00