Bug 36355: Prevent csrf.ts to fail if DB has libraries with long name
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Mar 2024 08:29:13 +0000 (09:29 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 20 Mar 2024 17:39:41 +0000 (18:39 +0100)
commit7e05bda48ee17aa6ed755c9e58d898a684252bbb
tree8bbb6ff16f6668cfb1f824ffe765ee5bca6d0130
parentc6fa96eecae4a0f0de95977d8cf032cb9ee941bf
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>
t/cypress/integration/Auth/csrf.ts