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

--- Comment #230 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211722
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211722&action=edit
Bug 42383: (QA follow-up) Wait for the focus of the barcode box in the check-in
tests

The page gives the focus to the barcode box about half a second after it
is mounted (after staff-global.js has focused the header search box). A
test that opened the date picker of the settings straight after loading the
page could have the focus taken from it while the calendar was open, which
closes it: "takes a time and does not allow a future date" failed now and
then because of it.

visitCheckin() now also waits until the barcode box has the focus.

Test plan:
1. 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