Bug 34478: Fix selenium/administration_tasks.t
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
c0c581c5ee
commit
d6cf04d7da
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue