Bug 18936: Fix selenium/administration_tasks.t

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-02-04 16:00:21 +01:00 committed by Martin Renvoize
parent 7a03815138
commit 86a0a7d80b
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -82,7 +82,7 @@ SKIP: {
$elt = $driver->find_element('//tr[@id="edit_row"]/td[@class="actions"]/button[@type="submit"]');
$elt->click();
$elt = $driver->find_elements('//table[@id="default-circulation-rules"]/tbody/tr/td[contains(text(),"'.$itype->description.'")]/following-sibling::td/span[text() = "Unlimited"]');
is( @$elt,2,"We have unlimited checkouts");
is( @$elt, 4, "We have unlimited checkouts and holds" );
#Clean up
Koha::CirculationRules->search( { itemtype => $itype->itemtype } )->delete;
$itype->delete;