From 5b63d200a8f693b2c7dab5a72d74e663b81edbe1 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 Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- 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 da9ed2f0ee..8a218e3d3d 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.5