Bug 32010: 2AF selenium tests - Alert can appear when we are waiting for ajax
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Nov 2022 06:55:52 +0000 (07:55 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 22 Nov 2022 11:55:09 +0000 (08:55 -0300)
commit527f8fadcceed3c5373c9d28755ab474061711b2
tree869a114cf1ddfbb4bddee9ea9aab6819b1236583
parentafd0bf0678efe2726930ee271403ef43246eda5e
Bug 32010: 2AF selenium tests - Alert can appear when we are waiting for ajax

If we are waiting for ajax (there is a sleep 1s) and the alert pops up
at the same time, Selenium is raising "unexpected alert open"

We should not wait for the ajax request, but better wait for the
alert actually.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/selenium/authentication_2fa.t
t/lib/Selenium.pm