Unverified Commit 4f1509c0 authored by mvdbeek's avatar mvdbeek
Browse files

Add API test that shows data_meta filter ignored in workflow run form

parent 0f729439
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -6841,6 +6841,27 @@ steps:
            hda2 = self.dataset_populator.get_history_dataset_details(history_id, hid=2)
            assert hda2["validated_state"] == "invalid"

    @skip_without_tool("dbkey_filter_input")
    def test_value_restriction_with_data_meta_filter(self):
        workflow_id = self.workflow_populator.upload_yaml_workflow(
            """
class: GalaxyWorkflow
inputs:
  select_text:
     type: text
     restrictOnConnections: true
steps:
  select:
    tool_id: dbkey_filter_input
    in:
      index: select_text
"""
        )
        with self.dataset_populator.test_history() as history_id:
            run_workflow = self._download_workflow(workflow_id, style="run", history_id=history_id)
        options = run_workflow["steps"][0]["inputs"][0]["options"]
        assert len(options) >= 1

    def test_value_restriction_with_select_and_text_param(self):
        workflow_id = self.workflow_populator.upload_yaml_workflow(
            """