Koha/t/db_dependent/selenium
Jonathan Druart 7bcda46654 Bug 32671: Prevent selenium/basic_workflow.t to fail if run on slow servers
When submitting the form to create a new patron we are doing a POST
memberentry.pl that is redirecting to moremember.pl

The selenium test is expecting for the end of the request to test the
page's title against "Patron details for ".

But it's only waiting for the POST response (302), not the GET
moremember that will display the patron's details.

You can simulate a slow server using cpulimit: `cpulimit -b -p $PID -l 1`
replacing $PID with the pid of the starman process.

Note that other tests are failing using 1%, but... baby steps.

The current failre:
 #   Failed test at t/db_dependent/selenium/basic_workflow.t line 122
 Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125
 #                   'Add patron (test cat description) › Patrons › Koha'
 #     doesn't match '(?^u:Patron details for test_patron_surname)'

The next one (NOT fixed by this patch):

 #   Failed test at t/db_dependent/selenium/basic_workflow.t line 256.
 #                   '
 #
 #             Checkouts (0)#         #         '#     doesn't match '(?^u:Checkouts \(1\))'
 t/db_dependent/selenium/basic_workflow.t .. 14/22 #   Failed test at t/db_dependent/selenium/basic_workflow.t line 256.
 #                   '
 #
 #             Checkouts (1)
 #
 #         '
 #     doesn't match '(?^u:Checkouts \(2\))'
 t/db_dependent/selenium/basic_workflow.t .. 16/22 #   Failed test at t/db_dependent/selenium/basic_workflow.t line 256.
 #                   '
 #
 #             Checkouts (2)
 #
 #         '
 #     doesn't match '(?^u:Checkouts \(3\))'

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4e166e07c1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 5d73ff2da1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-03-19 21:30:21 +00:00
..
00-onboarding.t
01-installation.t
administration_tasks.t Bug 34345: (QA follow-up) Fix some more occurrences 2023-08-29 11:33:52 -10:00
authentication.t Bug 34513: (QA follow-up) Tidy 2023-09-26 21:25:13 -10:00
authentication_2fa.t Bug 35598: Fix selenium/authentication_2fa.t random failure 2024-01-19 20:53:11 +00:00
basic_workflow.t Bug 32671: Prevent selenium/basic_workflow.t to fail if run on slow servers 2024-03-19 21:30:21 +00:00
batch_item_modification.t Bug 32242: Add selenium tests 2022-11-17 14:16:12 -03:00
ilsdi.t Bug 35008: (QA follow-up) Add selenium unit tests 2023-11-10 21:41:30 -10:00
patrons_search.t Bug 35284: Fix tests 2023-11-10 21:45:31 -10:00
regressions.t Bug 29311: (follow-up) Fix t/db_dependent/selenium/regressions.t 2023-04-11 09:35:06 +02:00
remove_from_cart.t
self_registration.t
system_preferences_search.t Bug 32926: Fix selenium tests 2023-02-24 17:52:31 -03:00
update_child_to_adult.t