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

--- Comment #236 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211728
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211728&action=edit
Bug 42383: (QA follow-up) Do not take the focus from the field of an open
dialog

The check-in page puts the focus back in the barcode box after a scan, once
a dialog is closed and when a dialog opens. When one of these ran after the
dialog had focused its own field, the focus left it: the barcodes of a bundle
were typed half in the dialog and half in the barcode box, and the date
picker lost the focus that kept its calendar open. It depended on how fast
the server answered, so the check-in tests failed from time to time.

The focus is no longer taken from an input, a textarea or a select inside an
open dialog.

Test plan:
1. Apply the patch and rebuild the JS (yarn js:build)
2. Check in the host of a bundle and scan its parts into the barcodes box
=> All the barcodes land in the box, whatever the speed of the server
3. Run:
   $ yarn cypress run --spec t/cypress/integration/Circulation/Checkin_spec.ts
=> SUCCESS: Tests pass!

Assisted-by: Sonnet 5.5 (Anthropic)
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to