@@ -, +, @@ to the cart --- t/db_dependent/selenium/remove_from_cart.t | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/t/db_dependent/selenium/remove_from_cart.t +++ a/t/db_dependent/selenium/remove_from_cart.t @@ -71,6 +71,14 @@ subtest 'OPAC - Remove from cart' => sub { my $batch_id = $mock_zebra->load_records($file); + 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 }); + + $s->opac_auth( $patron->userid, $password ); + # We need to prevent scrolling to prevent the floating toolbar from overlapping buttons we are testing my $window_size = $driver->get_window_size(); $driver->set_window_size(1920,10800); --