Improve robustness of published workflow display test case.

Failed twice in different ways here https://jenkins.galaxyproject.org/job/selenium/484/ - this should address both cases.
This commit is contained in:
John Chilton
2017-09-20 08:29:25 -04:00
parent 87bb576c39
commit aa68d38735
2 changed files with 23 additions and 9 deletions
@@ -95,17 +95,19 @@ class WorkflowManagementTestCase(SeleniumTestCase):
self._workflow_import_from_url()
self.workflow_index_rename("managementesttopublish")
row_element = self.workflow_index_table_row()
columns = row_element.find_elements_by_css_selector("td")
assert columns[4].text == "No"
published_column_index = 4
@retry_assertion_during_transitions
def assert_published_column_text_is(expected_text):
column_text = self.workflow_index_column_text(published_column_index)
self.assertEqual(expected_text, column_text)
assert_published_column_text_is("No")
self.workflow_index_click_option("Share")
self.workflow_sharing_click_publish()
self.workflow_index_open()
row_element = self.workflow_index_table_row()
columns = row_element.find_elements_by_css_selector("td")
assert columns[4].text == "Yes"
assert_published_column_text_is("Yes")
@retry_assertion_during_transitions
def _assert_showing_n_workflows(self, n):