Skip to content

Commit

Permalink
Fix selenium test
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 19, 2020
1 parent f8ee8cf commit ae2c192
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ def tool_parameter_edit_rules(self, expanded_parameter_id="rules"):
def tool_set_value(self, expanded_parameter_id, value, expected_type=None, test_data_resolver=None):
div_element = self.tool_parameter_div(expanded_parameter_id)
assert div_element
if expected_type in ["data", "data_collection"]:
if expected_type in ["select", "data", "data_collection"]:
div_selector = "div.ui-form-element[tour_id$='%s']" % expanded_parameter_id
self.select2_set_value(div_selector, value)
else:
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy_test/selenium/test_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_simple_page_creation_edit_and_view(self):
slug = self._get_random_name(prefix="pageslug")
self.tool_set_value("title", name)
self.tool_set_value("slug", slug)
self.tool_set_value("content_format", "HTML", expected_type="select")
self.screenshot("pages_create_form")

# Sometimes 'submit' button not yet hooked up?
Expand Down

0 comments on commit ae2c192

Please sign in to comment.