From 99f7e5efb35e6f6715af0a7812f937e637e543a1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 23 Feb 2023 10:05:38 +0100 Subject: [PATCH] Bug 32926: Fix selenium tests We should not rely on existing data, and we should remove data at the end. Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f16baef8794870d12272cf173e5396a86aa7673c) Signed-off-by: Matt Blenkinsop --- t/db_dependent/selenium/system_preferences_search.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/selenium/system_preferences_search.t b/t/db_dependent/selenium/system_preferences_search.t index 0bbff17530..70b8960fe8 100755 --- a/t/db_dependent/selenium/system_preferences_search.t +++ b/t/db_dependent/selenium/system_preferences_search.t @@ -40,12 +40,12 @@ my $base_url = $s->base_url; # Adjust the height and width of the generated screenshots #$driver->set_window_size( 2160, 991 ); # Height, then Width -my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1, branchcode => 'CPL' } } ); +my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1 } } ); my $password = Koha::AuthUtils::generate_password( $patron->category ); t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 ); $patron->set_password( { password => $password } ); -push @cleanup, $patron; +push @cleanup, $patron, $patron->category, $patron->library; $s->auth( $patron->userid, $password ); -- 2.20.1