Bug 34478: Fix selenium/administration_tasks.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-02-22 11:05:20 +01:00
parent c0c581c5ee
commit d6cf04d7da
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -175,12 +175,8 @@ SKIP: {
my $dbh = C4::Context->dbh; my $dbh = C4::Context->dbh;
my ( $av_id ) = $dbh->selectrow_array(q| my ( $av_id ) = $dbh->selectrow_array(q|
SELECT id FROM authorised_values WHERE category=?|, undef, $av_category ); SELECT id FROM authorised_values WHERE category=?|, undef, $av_category );
$s->click( #$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;
href => '/admin/authorised_values.pl?op=delete&searchfield=' . $av_category . '&id=' . $av_id,
main_class => 'main container-fluid'
}
);
$s->driver->accept_alert; # Accept the modal "Are you sure you want to delete this authorized value?" $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 # For an unknown reason the click on the next admin-home link does not work