diff --git a/lib/galaxy/selenium/navigation.yml b/lib/galaxy/selenium/navigation.yml index 9ade81de4a2..859250ea708 100644 --- a/lib/galaxy/selenium/navigation.yml +++ b/lib/galaxy/selenium/navigation.yml @@ -92,7 +92,7 @@ change_user_address: sign_out: selectors: cancel_button: '.modal-footer .buttons #button-0' - sign_out_button: '.modal-footer .buttons #button-0' + sign_out_button: '.modal-footer .buttons #button-1' history_panel: menu: diff --git a/lib/galaxy_test/selenium/test_sign_out.py b/lib/galaxy_test/selenium/test_sign_out.py index 1fecc571f85..928c61d23c1 100644 --- a/lib/galaxy_test/selenium/test_sign_out.py +++ b/lib/galaxy_test/selenium/test_sign_out.py @@ -1,4 +1,3 @@ -import time from .framework import ( selenium_test, SeleniumTestCase @@ -13,17 +12,10 @@ class SignOutTestCase(SeleniumTestCase): self.click_masthead_user() self.components.masthead.preferences.wait_for_and_click() self.components.preferences.sign_out.wait_for_and_click() - #Testing of the cancel button - time.sleep(5) self.components.sign_out.cancel_button.wait_for_and_click() - time.sleep(10) #Giving time to click cancel and go back to user preferences (not happening, and no error) assert self.is_logged_in() new_email = self.driver.find_element_by_id("user-preferences-current-email").text self.assertTrue(email == new_email) - #Testing of the sign out button self.components.preferences.sign_out.wait_for_and_click() - time.sleep(5) self.components.sign_out.sign_out_button.wait_for_and_click() - time.sleep(10) # Enough time to see a log out screen and redirection - # assert not self.is_logged_in() # Error only shows here, but should had been trigger in line 17 - time.sleep(5) \ No newline at end of file + assert not self.is_logged_in() \ No newline at end of file