Merge pull request #4653 from jmchilton/selenium_fixes_28

Improve robustness of published workflow display test case.
This commit is contained in:
Martin Cech
2017-09-21 12:55:41 -04:00
committed by GitHub
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):