Skip to content

Commit

Permalink
Add selenium test for optional runtime parameter submission
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 19, 2024
1 parent 066ebe3 commit d034a6c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/galaxy_test/selenium/test_workflow_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,29 @@ def test_runtime_parameters_simple(self):

self._assert_has_3_lines_after_run(hid=2)

@selenium_test
@managed_history
def test_runtime_parameters_simple_optional(self):
self.workflow_run_open_workflow(
"""
class: GalaxyWorkflow
inputs: {}
steps:
int_step:
tool_id: expression_null_handling_integer
runtime_inputs:
- int_input
"""
)
self.tool_parameter_div("int_input")
self._set_num_lines_to_3("int_input")
self.screenshot("workflow_run_optional_runtime_parameters_modified")
self.workflow_run_submit()
self.workflow_run_wait_for_ok(hid=1)
history_id = self.current_history_id()
content = self.dataset_populator.get_history_dataset_content(history_id, hid=1)
assert json.loads(content) == 3

@selenium_test
@managed_history
def test_subworkflows_expanded(self):
Expand Down

0 comments on commit d034a6c

Please sign in to comment.