--- /dev/null
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+---
+"$graph":
+- class: Workflow
+ cwlVersion: v1.2
+ hints:
+ - acrContainerImage: 7009415fdc959d0c2819ee2e9db96561+261
+ class: http://arvados.org/cwl#WorkflowRunnerResources
+ id: "#main"
+ inputs:
+ - default: []
+ id: "#main/bar"
+ type:
+ items: Directory
+ type: array
+ - default: []
+ id: "#main/foo"
+ type:
+ items: File
+ type: array
+ outputs: []
+ steps: []
+cwlVersion: v1.2
});
});
- it('can select multi files when creating workflow', () => {
+ ['workflow_with_array_fields.yaml', 'workflow_with_default_array_fields.yaml'].forEach((yamlfile) =>
+ it('can select multi files when creating workflow '+yamlfile, () => {
cy.createProject({
owningUser: activeUser,
projectName: 'myProject1',
cy.getAll('@myProject1', '@testCollection', '@testCollection2')
.then(function ([myProject1, testCollection, testCollection2]) {
- cy.readFile('cypress/fixtures/workflow_with_array_fields.yaml').then(workflow => {
+ cy.readFile('cypress/fixtures/'+yamlfile).then(workflow => {
cy.createWorkflow(adminUser.token, {
name: `TestWorkflow${Math.floor(Math.random() * 999999)}.cwl`,
definition: workflow,
cy.contains(testCollection2.name);
});
});
- });
-});
\ No newline at end of file
+ }));
+});