From a9d60c4e4852523e4e57cbcc5238a27f65e884cd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 8 Apr 2020 08:47:49 +0200 Subject: [PATCH] Bug 24801: (follow-up) Display all the libraries - Selenium fix We have it failing now for the delete link.. 14:26:50 selenium_1 | 05:26:50.451 WARN - Exception: Unable to locate element: {"method":"xpath","selector":"//*[@id=\"delete_library_UT_BC\"]"} --- t/db_dependent/selenium/administration_tasks.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t index b3c3bbf2c3..eb2ce504c9 100644 --- a/t/db_dependent/selenium/administration_tasks.t +++ b/t/db_dependent/selenium/administration_tasks.t @@ -136,6 +136,9 @@ SKIP: { ); # Edit $s->fill_form( { branchname => 'another branchname' } ); $s->submit_form; + + # Select "Show all" in the datatable "Show x entries" dropdown list to make sure our library is not hidden + $driver->find_element('//select[@name="libraries_length"]/option[@value="-1"]')->click; $s->click( { id => 'delete_library_'.$branchcode, -- 2.20.1