Browse Source

Bug 22898: Since bug 23957, submit element is now a button (no longer input)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Jonathan Druart 4 years ago
committed by Martin Renvoize
parent
commit
25aad587d2
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 4
      t/db_dependent/selenium/basic_workflow.t

4
t/db_dependent/selenium/basic_workflow.t

@ -236,13 +236,13 @@ SKIP: {
#Place holds
$driver->get($base_url."/reserve/request.pl?borrowernumber=$borrowernumber&biblionumber=".$biblionumbers[0]);
$driver->find_element('//form[@id="hold-request-form"]//input[@type="submit"]')->click; # Biblio level
$driver->find_element('//form[@id="hold-request-form"]//button[@type="submit"]')->click; # Biblio level
my $patron = Koha::Patrons->find($borrowernumber);
is( $patron->holds->count, 1, );
$driver->get($base_url."/reserve/request.pl?borrowernumber=$borrowernumber&biblionumber=".$biblionumbers[1]);
$driver->find_element('//form[@id="hold-request-form"]//input[@type="radio"]')->click; # Item level, there is only 1 item per bib so we are safe
$driver->find_element('//form[@id="hold-request-form"]//input[@type="submit"]')->click;
$driver->find_element('//form[@id="hold-request-form"]//button[@type="submit"]')->click;
is( $patron->holds->count, 2, );
time_diff("holds");

Loading…
Cancel
Save