[Koha-bugs] [Bug 32010] selenium/authentication_2fa.t is failing randomly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 2 09:11:58 CET 2022


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

--- Comment #8 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 142914
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142914&action=edit
Bug 32010: Make sure the alert will be displayed after the ajax call

There is a missing wait_for_ajax call at after we click but wait_for_ajax
is waiting for the return of success, and the alert is there.

22:01:57 koha_1       | STRACE: /usr/share/perl5/Try/Tiny.pm:123 in
Selenium::Remote::Driver::catch {...}
22:01:57 koha_1       |         /usr/share/perl5/Selenium/Remote/Driver.pm:361
in Try::Tiny::try
22:01:57 koha_1       |         (eval 541):1 in
Selenium::Remote::Driver::__ANON__
22:01:57 koha_1       |         (eval 543):2 in
Selenium::Remote::Driver::__ANON__
22:01:57 koha_1       |         /usr/share/perl5/Selenium/Remote/Driver.pm:654
in Selenium::Remote::Driver::_execute_command
22:01:57 koha_1       |        
t/db_dependent/selenium/authentication_2fa.t:282 in
Selenium::Remote::Driver::get_alert_text
22:01:57 koha_1       |         /usr/share/perl/5.32/Test/Builder.pm:334 in
main::__ANON__
22:01:57 koha_1       |         /usr/share/perl/5.32/Test/Builder.pm:334 in
(eval)
22:01:57 koha_1       |         /usr/share/perl/5.32/Test/More.pm:809 in
Test::Builder::subtest
22:01:57 koha_1       |        
t/db_dependent/selenium/authentication_2fa.t:291 in Test::More::subtest
22:01:57 koha_1       |
22:01:57 koha_1       |     # Looks like you planned 7 tests but ran 4.
22:01:57 koha_1       |
22:01:57 koha_1       | #   Failed test 'Enforce 2FA setup on first login'
22:01:57 koha_1       | #   at t/db_dependent/selenium/authentication_2fa.t
line 291.
22:01:57 koha_1       | Error while executing command: no such alert at
/usr/share/perl5/Selenium/Remote/Driver.pm line 411.
22:01:57 koha_1       |  at /usr/share/perl5/Selenium/Remote/Driver.pm line
356.
22:01:57 koha_1       | # Looks like your test exited with 255 just after 4.
22:01:57 koha_1       | [20:59:37] t/db_dependent/selenium/authentication_2fa.t

Test plan:
Confirm that the test pass (execute it in a loop, hundreds of times)
Confirm that the behaviour of 2FA "enforced" (see bug 30588) is still
working as expected.

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


More information about the Koha-bugs mailing list