[Koha-bugs] [Bug 36355] Auth/csrf.ts is failing if library with long info the DB

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 19 09:34:02 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36355

--- Comment #2 from Jonathan Druart <jonathan.druart at gmail.com> ---
Created attachment 163382
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163382&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list