Koha-clms/t/db_dependent/selenium
Jonathan Druart 3d8ff90a8f
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.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-18 12:04:28 -03:00
..
00-onboarding.t Bug 19185: Add missing +x on new test files 2021-10-25 13:09:34 +02:00
01-installation.t Bug 19185: Add missing +x on new test files 2021-10-25 13:09:34 +02:00
administration_tasks.t Bug 30952: Fix selenium/administration_tasks.t 2022-10-25 09:45:30 -03:00
authentication.t Bug 29915: (QA follow-up) Spelling 2022-03-22 10:17:33 -10:00
authentication_2fa.t Bug 32010: Make sure the alert will be displayed after the ajax call 2022-11-18 12:04:28 -03:00
basic_workflow.t Bug 30952: Fix selenium/basic_workflow.t 2022-10-25 09:45:30 -03:00
batch_item_modification.t Bug 32242: Add selenium tests 2022-11-17 14:16:12 -03:00
patrons_search.t Revert "Bug 31104: Add a selenium test" 2022-08-08 11:18:02 -03:00
regressions.t Bug 29860: Remove item type-related warnings 2022-06-01 15:59:07 -03:00
remove_from_cart.t Bug 29779: Make selenium tests return green even if lib is missing 2022-01-31 21:55:40 -10:00
self_registration.t Bug 29779: Make selenium tests return green even if lib is missing 2022-01-31 21:55:40 -10:00
update_child_to_adult.t Bug 30595: Prevent update_child_to_adult.t to fail randomly 2022-04-22 10:02:52 -10:00