From 175fd9658607a4c854cfb61d3629ddabef63ff2b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Aug 2024 13:59:15 +0200 Subject: [PATCH] Bug 37748: Adjust the 'Update child to patron' selenium test Signed-off-by: Owen Leonard --- t/db_dependent/selenium/update_child_to_adult.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/selenium/update_child_to_adult.t b/t/db_dependent/selenium/update_child_to_adult.t index da9ed2f0eec..8a218e3d3dc 100755 --- a/t/db_dependent/selenium/update_child_to_adult.t +++ b/t/db_dependent/selenium/update_child_to_adult.t @@ -138,9 +138,9 @@ subtest 'Update child to patron' => sub { $driver->get( $base_url . "/members/moremember.pl?borrowernumber=$adult_borrowernumber" ); $driver->find_element('//div[@id="toolbar"]/div[@class="btn-group"][last()]')->click; # More button group - my $update_link = $driver->find_element('//a[@id="updatechild"]'); - is($update_link->get_attribute('data-bs-toggle', 1), 'tooltip', q|The update link should have a data-bs-toggle attribute => it's a tooltip, not clickable|); - $update_link->click; + my $update_li = $driver->find_element('//a[@id="updatechild"]/..'); + is($update_li->get_attribute('data-bs-toggle', 1), 'tooltip', q|The parent of the update link should have a data-bs-toggle attribute => it's a tooltip, not clickable|); + $update_li->click; like( $driver->get_current_url, qr{/members/moremember\.pl\?borrowernumber=$adult_borrowernumber$}, 'After clicking the link, nothing happens, no # in the URL'); }; -- 2.39.2