]> git.koha-community.org Git - koha.git/commit
Bug 37917: Add some wait time to RecordSources_spec.ts for the intercepted request...
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 Sep 2024 13:49:29 +0000 (10:49 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 13 Sep 2024 14:06:29 +0000 (16:06 +0200)
commit23b00bdc06d28e012724a37ed5052bf056026302
tree0a913f3c2ca89ef9a0ae9821cb0a580d0e113c98
parent846ab3a0f1c07de11b3119d01e87d31480c97ae6
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>
t/cypress/integration/Admin/RecordSources_spec.ts