Bug 35556: Fix random selenium failure if category on second page

If 'Test category' if on the second page the test will fail to
locate the Edit button.

To make sure it is displayed on the screen we are selecting "All" in the
dropdown list.

This is done a couple of lines later in the script for the same purpose.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2023-12-12 16:14:34 +01:00 committed by Katrin Fischer
parent ba7b62d1fc
commit 6f45fd4574
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 0 deletions

View File

@ -198,6 +198,9 @@ SKIP: {
$s->fill_form( { categorycode => $category_code, description => 'Test category', enrolmentperiod => 12, category_type => 'A' } );
$s->submit_form;
# Select "Show all" in the datatable "Show x entries" dropdown list to make sure our category is not hidden
$s->show_all_entries('//div[@id="patron_categories_wrapper"]');
$s->click(
{
href => '/admin/categories.pl?op=add_form&categorycode=' . $category_code,