mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix tool exection in selenium tests
This commit is contained in:
@@ -906,6 +906,10 @@ tour:
|
||||
next: '${_} .tour-next'
|
||||
end: '${_} .tour-end'
|
||||
|
||||
tools:
|
||||
selectors:
|
||||
activity: "#activity-tools"
|
||||
|
||||
admin:
|
||||
allowlist:
|
||||
selectors:
|
||||
|
||||
@@ -1268,6 +1268,10 @@ class NavigatesGalaxy(HasDriver):
|
||||
self.components.histories.activity.wait_for_and_click()
|
||||
self.components.published_histories.tab.wait_for_and_click()
|
||||
|
||||
def navigate_to_tools(self):
|
||||
self.home()
|
||||
self.components.tools.activity.wait_for_and_click()
|
||||
|
||||
def admin_open(self):
|
||||
self.components.admin.activity.wait_for_and_click()
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@ class TestChangePassword(SeleniumTestCase):
|
||||
self.home()
|
||||
email = self._get_random_email()
|
||||
self.register(email)
|
||||
self.click_masthead_user()
|
||||
self.components.masthead.preferences.wait_for_and_click()
|
||||
self.navigate_to_user_preferences()
|
||||
self.components.preferences.change_password.wait_for_and_click()
|
||||
new_password = self._get_random_password()
|
||||
self.fill_input_fields(self.default_password, new_password, new_password)
|
||||
@@ -57,8 +56,7 @@ class TestChangePassword(SeleniumTestCase):
|
||||
def register_and_change_password(self):
|
||||
self.home()
|
||||
self.register()
|
||||
self.click_masthead_user()
|
||||
self.components.masthead.preferences.wait_for_and_click()
|
||||
self.navigate_to_user_preferences()
|
||||
self.components.preferences.change_password.wait_for_and_click()
|
||||
|
||||
def fill_input_fields(self, current, password, confirm):
|
||||
|
||||
@@ -11,8 +11,7 @@ class TestSignOut(SeleniumTestCase):
|
||||
def test_sign_out(self):
|
||||
email = self._get_random_email()
|
||||
self.register(email)
|
||||
self.click_masthead_user()
|
||||
self.components.masthead.preferences.wait_for_and_click()
|
||||
self.navigate_to_user_preferences()
|
||||
self.components.preferences.sign_out.wait_for_and_click()
|
||||
self.components.sign_out.cancel_button.wait_for_and_click()
|
||||
assert self.is_logged_in()
|
||||
|
||||
@@ -118,6 +118,7 @@ class TestObjectStoreSelectionSeleniumIntegration(SeleniumIntegrationTestCase, C
|
||||
preferences = self.components.preferences
|
||||
preferences.preferred_storage.wait_for_and_click()
|
||||
self.select_storage("second")
|
||||
self.navigate_to_tools()
|
||||
self.run_environment_test_tool()
|
||||
self.wait_for_hid_ok_and_open_details(1)
|
||||
details = self.components.object_store_details
|
||||
@@ -136,7 +137,7 @@ class TestObjectStoreSelectionSeleniumIntegration(SeleniumIntegrationTestCase, C
|
||||
preferences = self.components.preferences
|
||||
preferences.preferred_storage.wait_for_and_click()
|
||||
self.select_storage("__null__")
|
||||
|
||||
self.navigate_to_tools()
|
||||
self.run_environment_test_tool()
|
||||
self.wait_for_hid_ok_and_open_details(1)
|
||||
details = self.components.object_store_details
|
||||
|
||||
@@ -15,7 +15,6 @@ class TestUserFileSourceAwsPublicSeleniumIntegration(BaseUserObjectStoreSelenium
|
||||
@managed_history
|
||||
@selenium_test
|
||||
def test_create_and_use(self):
|
||||
self.navigate_to_user_preferences()
|
||||
random_name = self._get_random_name(prefix="Encyclopedia of DNA Elements ENCODE")
|
||||
instance = FileSourceInstance(
|
||||
template_id="aws_public",
|
||||
|
||||
Reference in New Issue
Block a user