From d6cf04d7da0b5b83a49e2a54bc468aa18c6ee1b7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 22 Feb 2024 11:05:20 +0100 Subject: [PATCH] Bug 34478: Fix selenium/administration_tasks.t Signed-off-by: Jonathan Druart --- t/db_dependent/selenium/administration_tasks.t | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t index 8f89ea2aa1..6593a5eb9a 100755 --- a/t/db_dependent/selenium/administration_tasks.t +++ b/t/db_dependent/selenium/administration_tasks.t @@ -175,12 +175,8 @@ SKIP: { my $dbh = C4::Context->dbh; my ( $av_id ) = $dbh->selectrow_array(q| SELECT id FROM authorised_values WHERE category=?|, undef, $av_category ); - $s->click( - { - href => '/admin/authorised_values.pl?op=delete&searchfield=' . $av_category . '&id=' . $av_id, - main_class => 'main container-fluid' - } - ); + #$driver->find_element('//input[@id="'.$av_id.'"]/following-sibling::button[text() = "Delete"]')->click; + $driver->find_element('//input[@name="id"][@value="'.$av_id.'"]/following-sibling::button')->click; $s->driver->accept_alert; # Accept the modal "Are you sure you want to delete this authorized value?" # For an unknown reason the click on the next admin-home link does not work -- 2.39.5