Bug 25811: Try to fix the random failure caused by not finding id=login
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 3 Aug 2020 15:57:02 +0000 (17:57 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 5 Aug 2020 08:20:51 +0000 (10:20 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

t/db_dependent/selenium/authentication.t

index 359cac1..418346a 100644 (file)
@@ -96,6 +96,7 @@ SKIP: {
 
         $driver->find_element('//a[@id="user-menu"]')->click;
         $driver->find_element('//a[@id="logout"]')->click;
+        $driver->get($mainpage); # This should not be needed but we the next find_element fails randomly
         $driver->find_element('//div[@id="login"]'); # logged out
 
         # Using the form on the right