Bug 37732: Fix 'Invalid PIN code' styling for 2FA
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
af9701174f
commit
eea4595f3e
|
|
@ -9,7 +9,7 @@
|
|||
<p>Time based: Yes</p>
|
||||
</div>
|
||||
|
||||
<div id="errors" class="dialog error" style="display: none;"></div>
|
||||
<div id="errors" class="alert alert-error" style="display: none;"></div>
|
||||
|
||||
<fieldset class="rows">
|
||||
<input type="hidden" id="secret32" name="secret32" value="[% secret32 | html %]" />
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ SKIP: {
|
|||
$driver->find_element('//*[@id="pin_code"]')->send_keys('wrong_code');
|
||||
$driver->find_element('//*[@id="register-2FA"]')->click;
|
||||
$s->wait_for_ajax;
|
||||
ok($driver->find_element('//div[@class="dialog error"][contains(text(), "Invalid PIN code")]'));
|
||||
ok($driver->find_element('//div[@class="alert alert-error"][contains(text(), "Invalid PIN code")]'));
|
||||
is( $patron->get_from_storage->secret, undef, 'secret is not set in DB yet' );
|
||||
|
||||
my $secret32 = $driver->find_element('//*[@id="secret32"]')->get_value();
|
||||
|
|
|
|||
Loading…
Reference in New Issue