mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
More selenium adjustments, using the activity bar to navigate instead of the masthead
This commit is contained in:
@@ -41,6 +41,7 @@ masthead:
|
||||
# bootstrap-vue a tag doesn't work as link target, need to hit span inside
|
||||
user: '#user.loggedin-only > a.nav-link > span'
|
||||
register_or_login: '#user.loggedout-only > .nav-link'
|
||||
logout: '#user.loggedin-only > .nav-link'
|
||||
|
||||
user_menu: '#user .dropdown-menu a'
|
||||
workflow: '#workflow .nav-link'
|
||||
@@ -66,7 +67,6 @@ masthead:
|
||||
workflow: 'Workflow'
|
||||
|
||||
# user menu
|
||||
logout: 'Sign Out'
|
||||
preferences: 'Preferences'
|
||||
|
||||
# data menu
|
||||
@@ -78,6 +78,8 @@ masthead:
|
||||
|
||||
preferences:
|
||||
selectors:
|
||||
activity: "#activity-settings"
|
||||
activity_expand: ".activity-panel-footer"
|
||||
sign_out: "#edit-preferences-sign-out"
|
||||
change_password: "#edit-preferences-password"
|
||||
manage_information: '#edit-preferences-information'
|
||||
@@ -457,6 +459,7 @@ collection_builders:
|
||||
|
||||
histories:
|
||||
selectors:
|
||||
activity: '#activity-histories'
|
||||
advanced_search_toggle: '#histories-grid [data-description="toggle advanced search"]'
|
||||
advanced_search_name_input: '#histories-advanced-filter-name'
|
||||
advanced_search_tag_area: '#histories-advanced-filter-tag .stateless-tags button'
|
||||
@@ -532,6 +535,7 @@ history_import:
|
||||
|
||||
pages:
|
||||
selectors:
|
||||
activity: "#activity-pages"
|
||||
create: '#page-create'
|
||||
submit: '#submit'
|
||||
create_title_input: '#form-element-title input'
|
||||
@@ -856,6 +860,7 @@ workflow_show:
|
||||
|
||||
invocations:
|
||||
selectors:
|
||||
activity: "#activity-invocation"
|
||||
invocations_table: '#invocations-grid .grid-table'
|
||||
invocations_table_rows: '#invocations-grid .grid-table [data-description="grid item"]'
|
||||
pager: '[data-description="grid pager"]'
|
||||
|
||||
@@ -1237,48 +1237,37 @@ class NavigatesGalaxy(HasDriver):
|
||||
|
||||
def navigate_to_histories_page(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.histories.wait_for_and_click()
|
||||
self.components.histories.activity.wait_for_and_click()
|
||||
self.components.histories.histories.wait_for_present()
|
||||
|
||||
def navigate_to_histories_shared_with_me_page(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.histories.wait_for_and_click()
|
||||
self.components.histories.activity.wait_for_and_click()
|
||||
self.components.shared_histories.tab.wait_for_and_click()
|
||||
|
||||
def navigate_to_user_preferences(self):
|
||||
self.home()
|
||||
self.click_masthead_user()
|
||||
self.components.masthead.preferences.wait_for_and_click()
|
||||
self.components.preferences.activity.wait_for_and_click()
|
||||
self.components.preferences.activity_expand.wait_for_and_click()
|
||||
|
||||
def navigate_to_invocations(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.invocations.wait_for_and_click()
|
||||
self.components.invocations.activity.wait_for_and_click()
|
||||
|
||||
def navigate_to_pages(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.pages.wait_for_and_click()
|
||||
self.components.pages.activity.wait_for_and_click()
|
||||
|
||||
def navigate_to_published_workflows(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.workflows.wait_for_and_click()
|
||||
self.components.workflows.activity.wait_for_and_click()
|
||||
self.components.workflows.published_tab.wait_for_and_click()
|
||||
|
||||
def navigate_to_published_histories(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.histories.wait_for_and_click()
|
||||
self.components.histories.activity.wait_for_and_click()
|
||||
self.components.published_histories.tab.wait_for_and_click()
|
||||
|
||||
def navigate_to_published_pages(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.pages.wait_for_and_click()
|
||||
|
||||
def admin_open(self):
|
||||
self.components.admin.activity.wait_for_and_click()
|
||||
|
||||
@@ -1329,7 +1318,6 @@ class NavigatesGalaxy(HasDriver):
|
||||
|
||||
def libraries_open(self):
|
||||
self.home()
|
||||
self.click_masthead_data()
|
||||
self.components.masthead.libraries.wait_for_and_click()
|
||||
self.components.libraries.selector.wait_for_visible()
|
||||
|
||||
@@ -1713,12 +1701,6 @@ class NavigatesGalaxy(HasDriver):
|
||||
def tool_form_execute(self):
|
||||
self.components.tool_form.execute.wait_for_and_click()
|
||||
|
||||
def click_masthead_user(self):
|
||||
self.components.masthead.user.wait_for_and_click()
|
||||
|
||||
def click_masthead_data(self):
|
||||
self.components.masthead.data.wait_for_and_click()
|
||||
|
||||
def click_activity_workflow(self):
|
||||
self.components.workflows.activity.wait_for_and_click()
|
||||
|
||||
@@ -2002,7 +1984,6 @@ class NavigatesGalaxy(HasDriver):
|
||||
|
||||
def logout(self):
|
||||
self.components.masthead.logged_in_only.wait_for_visible()
|
||||
self.click_masthead_user()
|
||||
self.components.masthead.logout.wait_for_and_click()
|
||||
try:
|
||||
self.components.masthead.logged_out_only.wait_for_visible()
|
||||
|
||||
Reference in New Issue
Block a user