From 37aaeb778f4bb9a82d6577f38ad0482b79947e83 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 --- 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.34.1