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:
John Chilton
2017-09-29 15:06:26 -04:00
parent e132521255
commit 2e3c6e8941
2 changed files with 9 additions and 3 deletions
+7
View File
@@ -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()