Unverified Commit 29da6fec authored by mvdbeek's avatar mvdbeek
Browse files

Add selenium test for optional runtime parameter submission

parent 1bdd9e7a
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -75,6 +75,29 @@ class TestWorkflowRun(SeleniumTestCase, UsesHistoryItemAssertions, RunsWorkflows

        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):