Lines 60-66
subtest 'SCI can load error pages' => sub {
Link Here
|
60 |
|
60 |
|
61 |
my $builder = t::lib::TestBuilder->new; |
61 |
my $builder = t::lib::TestBuilder->new; |
62 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 0 } } ); |
62 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 0 } } ); |
63 |
t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 ); |
63 |
my $rsp = C4::Context->preference('RequireStrongPassword'); |
|
|
64 |
C4::Context->set_preference( 'RequireStrongPassword', '0' ); |
64 |
my $password = Koha::AuthUtils::generate_password( $patron->category ); |
65 |
my $password = Koha::AuthUtils::generate_password( $patron->category ); |
65 |
$patron->set_password( { password => $password } ); |
66 |
$patron->set_password( { password => $password } ); |
66 |
|
67 |
|
Lines 86-93
subtest 'SCI can load error pages' => sub {
Link Here
|
86 |
$s->driver->find_element('//form[@id="scan_form"]//button[@id="sci_checkin_button"]')->click; |
87 |
$s->driver->find_element('//form[@id="scan_form"]//button[@id="sci_checkin_button"]')->click; |
87 |
like( $driver->get_title(), qr(Self check-in), ); |
88 |
like( $driver->get_title(), qr(Self check-in), ); |
88 |
|
89 |
|
89 |
C4::Context->set_preference( 'SelfCheckInUserJS', $sci_js ); |
90 |
C4::Context->set_preference( 'SelfCheckInUserJS', $sci_js ); |
90 |
C4::Context->set_preference( 'SelfCheckInModule', $sci_mo ); |
91 |
C4::Context->set_preference( 'SelfCheckInModule', $sci_mo ); |
|
|
92 |
C4::Context->set_preference( 'RequireStrongPassword', $rsp ); |
91 |
push @cleanup, $patron, $patron->category, $patron->library; |
93 |
push @cleanup, $patron, $patron->category, $patron->library; |
92 |
}; |
94 |
}; |
93 |
|
95 |
|
94 |
- |
|
|