mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Selenium - bug fix for checking workflow names on workflow index page.
xref https://jenkins.galaxyproject.org/job/selenium/654/artifact/654-test-errors/test_rename2017092708331506515637/
This commit is contained in:
@@ -550,6 +550,13 @@ class NavigatesGalaxy(HasDriver):
|
||||
alert.send_keys(new_name)
|
||||
alert.accept()
|
||||
|
||||
@retry_during_transitions
|
||||
def workflow_index_name(self, workflow_index=0):
|
||||
"""Get workflow name for workflow_index'th row."""
|
||||
row_element = self.workflow_index_table_row(workflow_index=workflow_index)
|
||||
workflow_button = row_element.find_element_by_css_selector(".menubutton")
|
||||
return workflow_button.text
|
||||
|
||||
def workflow_index_click_option(self, option_title, workflow_index=0):
|
||||
|
||||
@retry_during_transitions
|
||||
|
||||
@@ -38,9 +38,8 @@ class WorkflowManagementTestCase(SeleniumTestCase):
|
||||
|
||||
@retry_assertion_during_transitions
|
||||
def check_name():
|
||||
row_element = self.workflow_index_table_row()
|
||||
renamed_workflow_button = row_element.find_element_by_css_selector(".menubutton")
|
||||
assert 'CoolNewName' in renamed_workflow_button.text, renamed_workflow_button.text
|
||||
name = self.workflow_index_name()
|
||||
assert 'CoolNewName' == name, name
|
||||
|
||||
check_name()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user