Bug 23039: (RM follow-up) Fix basic_workflow test

This bug altered the markup of the returns page subtly, introducing a
new div level and as such changing the required xpath expression for the
checkin submission button in the basic_workflow tests.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2019-10-07 14:05:17 +01:00
parent 6a17bf7785
commit 8b97be3671
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ SKIP: {
for my $biblionumber ( @biblionumbers ) {
$driver->get($base_url."/circ/returns.pl");
$driver->find_element('//input[@id="barcode"]')->send_keys('t_value_bib'.$biblionumber);
$driver->find_element('//*[@id="circ_returns_checkin"]/div[1]/div[1]/div[2]/button')->click;
$driver->find_element('//*[@id="circ_returns_checkin"]/div[2]/div[1]/div[2]/button')->click;
like( $driver->get_title(), qr(Check in test biblio \d+) );
}