Koha/t/cypress/integration
Tomas Cohen Arazi 23b00bdc06
Bug 37917: Add some wait time to RecordSources_spec.ts for the intercepted request responses
This patch introduces the `cy.wait(500)` we use in several other Cypress
tests when an (intercepted) API request is made. This is very important
when tables are being rendered as DataTables is particularly bulky and
prone to take longer to finish loading the components if the CPU load is
a bit high.

I wasn't able to reproduce the problem very often, but you can test
yourself:

1. Run:
   $ ktd --shell
  k$ run_cypress --spec t/cypress/integration/Admin/RecordSources_spec.ts
2. Run it many times
=> FAIL: At some point it fails, you can overload your computer to try
3. Apply the patch
4. Repeat 2
=> SUCCESS: No failures :-D
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-09-13 16:06:29 +02:00
..
Admin Bug 37917: Add some wait time to RecordSources_spec.ts for the intercepted request responses 2024-09-13 16:06:29 +02:00
Auth Bug 35402: Fix cypress test csrf.ts 2024-09-13 16:06:27 +02:00
ERM Bug 35402: Fix cypress tests 2024-09-09 11:44:19 +02:00
Preservation Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
flatpickr_spec.ts Revert "Bug 37493: [DONT PUSH] Test only - Force test fail" 2024-09-02 17:21:50 +02:00
InfiniteScrollSelect_spec.ts Bug 37620: Fix Total-Count headers 2024-08-27 12:14:21 +02:00
KohaTable_spec.ts