https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40981

--- Comment #1 from Jonathan Druart <[email protected]> ---
Created attachment 187647
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187647&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to