Koha/t/cypress/integration
Matt Blenkinsop 538868d5f5
Bug 37620: Improve cypress test to reduce random failures
This patch makes some improvements to the Infinite Scroll cypress test to try and prevent random test failures

- Fixes X-Base-Count and X-Total-Count for intercepted requests
- Makes element selection more precise
- Adds an intercepted request returning the requrired result for the filtered search
- Awaits this request before selecting an element from the dropdown
- Awaits all 10 requests triggered by typing "License 50" rather than just the first one
- Ensures that the select dropdown is closed between operations by clicking into another field to remove focus from the select dropdown

Test plan:
1) yarn cypress run --spec t/cypress/integration/InfiniteScrollSelect_spec.ts
or
1) yarn cypress open and select the InfiniteScrollSelect test from the Cypress GUI

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-19 16:07:16 +02:00
..
Admin Bug 35919: Fix cypress tests 2024-04-26 17:06:06 +02:00
Auth
ERM Bug 37274: Use the Toolbar component in all Vue components 2024-07-18 18:25:58 +02:00
Preservation
flatpickr_spec.ts Bug 36774: Add cypress tests 2024-05-10 14:11:43 +02:00
InfiniteScrollSelect_spec.ts Bug 37620: Improve cypress test to reduce random failures 2024-08-19 16:07:16 +02:00
KohaTable_spec.ts