[ARVADOS-WORKBENCH2] updated: 2.1.0-385-g90729d29
Git user
git at public.arvados.org
Tue May 18 19:58:15 UTC 2021
Summary of changes:
cypress/fixtures/workflow_with_array_fields.yaml | 6 ++----
...array_fields.yaml => workflow_with_default_array_fields.yaml} | 0
cypress/integration/favorites.spec.js | 9 +++++----
3 files changed, 7 insertions(+), 8 deletions(-)
copy cypress/fixtures/{workflow_with_array_fields.yaml => workflow_with_default_array_fields.yaml} (100%)
via 90729d2947bdd88512263952819fef2c529c3473 (commit)
from 9234cee3a9c518f4f53e2db265d448a9d1ac0b17 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 90729d2947bdd88512263952819fef2c529c3473
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue May 18 15:57:56 2021 -0400
17686: Add test when there's no 'default: []'
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/cypress/fixtures/workflow_with_array_fields.yaml b/cypress/fixtures/workflow_with_array_fields.yaml
index fc71cf86..33f03f6b 100644
--- a/cypress/fixtures/workflow_with_array_fields.yaml
+++ b/cypress/fixtures/workflow_with_array_fields.yaml
@@ -11,13 +11,11 @@
class: http://arvados.org/cwl#WorkflowRunnerResources
id: "#main"
inputs:
- - default: []
- id: "#main/bar"
+ - id: "#main/bar"
type:
items: Directory
type: array
- - default: []
- id: "#main/foo"
+ - id: "#main/foo"
type:
items: File
type: array
diff --git a/cypress/fixtures/workflow_with_array_fields.yaml b/cypress/fixtures/workflow_with_default_array_fields.yaml
similarity index 100%
copy from cypress/fixtures/workflow_with_array_fields.yaml
copy to cypress/fixtures/workflow_with_default_array_fields.yaml
diff --git a/cypress/integration/favorites.spec.js b/cypress/integration/favorites.spec.js
index 6750650d..c9151483 100644
--- a/cypress/integration/favorites.spec.js
+++ b/cypress/integration/favorites.spec.js
@@ -205,7 +205,8 @@ describe('Favorites tests', function () {
});
});
- 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',
@@ -228,7 +229,7 @@ describe('Favorites tests', function () {
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,
@@ -300,5 +301,5 @@ describe('Favorites tests', function () {
cy.contains(testCollection2.name);
});
});
- });
-});
\ No newline at end of file
+ }));
+});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list