Koha/t/cypress
Jonathan Druart 7e05bda48e
Bug 36355: Prevent csrf.ts to fail if DB has libraries with long name
If one library has a long name the "Delete" button will not appear on
the screen and the cypress test will fail
 Timed out retrying after 10050ms: `cy.click()` failed because the center of this element is hidden from view

We can either increase the size of the screen or force the click even if
the button is not visible.

Test plan:
Edit a library and set info with long name, address, etc.
Run the cypress test:
  yarn cypress run --spec t/cypress/integration/Auth/csrf.ts
Note the failure, you can watch the video and notice that the delete
button is not on the screen (t/cypress/videos/csrf.ts.mp4)
Apply the patch, try again
=> Succes

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-20 18:39:41 +01:00
..
fixtures
integration Bug 36355: Prevent csrf.ts to fail if DB has libraries with long name 2024-03-20 18:39:41 +01:00
plugins Bug 36177: Cypress tests - cypress-mysql config 2024-03-12 17:47:34 +01:00
support Bug 36177: Cypress tests - cypress-mysql config 2024-03-12 17:47:34 +01:00