Lines 40-51
my $base_url = $s->base_url;
Link Here
|
40 |
# Adjust the height and width of the generated screenshots |
40 |
# Adjust the height and width of the generated screenshots |
41 |
#$driver->set_window_size( 2160, 991 ); # Height, then Width |
41 |
#$driver->set_window_size( 2160, 991 ); # Height, then Width |
42 |
|
42 |
|
43 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1, branchcode => 'CPL' } } ); |
43 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1 } } ); |
44 |
my $password = Koha::AuthUtils::generate_password( $patron->category ); |
44 |
my $password = Koha::AuthUtils::generate_password( $patron->category ); |
45 |
t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 ); |
45 |
t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 ); |
46 |
$patron->set_password( { password => $password } ); |
46 |
$patron->set_password( { password => $password } ); |
47 |
|
47 |
|
48 |
push @cleanup, $patron; |
48 |
push @cleanup, $patron, $patron->category, $patron->library; |
49 |
|
49 |
|
50 |
$s->auth( $patron->userid, $password ); |
50 |
$s->auth( $patron->userid, $password ); |
51 |
|
51 |
|
52 |
- |
|
|