Koha-clms/t/cypress/integration
Matt Blenkinsop a31735fa17 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>
(cherry picked from commit 538868d5f5)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-09-12 21:53:01 +00:00
..
Admin Bug 35919: Fix cypress tests 2024-04-26 17:06:06 +02:00
Auth Bug 36355: Prevent csrf.ts to fail if DB has libraries with long name 2024-03-20 18:39:41 +01:00
ERM Bug 35392: Use the same selector as everywhere else for .message 2024-04-05 17:39:48 +02:00
Preservation Bug 35940: Close modal before typing 2024-02-01 16:45:19 +01:00
InfiniteScrollSelect_spec.ts Bug 37620: Improve cypress test to reduce random failures 2024-09-12 21:53:01 +00:00
KohaTable_spec.ts Bug 34466: Cypress tests 2023-09-01 11:07:32 -03:00
flatpickr_spec.ts Bug 36774: Add cypress tests 2024-05-10 14:11:43 +02:00