Skip to content

Commit

Permalink
Selenium - bug fix for checking workflow names on workflow index page.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Sep 29, 2017
1 parent e132521 commit 2e3c6e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions test/galaxy_selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,13 @@ def workflow_index_rename(self, new_name, workflow_index=0):
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
Expand Down
5 changes: 2 additions & 3 deletions test/selenium_tests/test_workflow_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ def test_rename(self):

@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()

Expand Down

0 comments on commit 2e3c6e8

Please sign in to comment.