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:
Jonathan Druart 2024-09-03 12:02:07 +02:00 committed by Katrin Fischer
parent af9701174f
commit eea4595f3e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View File

@ -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 %]" />

View File

@ -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();