17256: Merge branch 'master' into 17256-File-selection-dialog-browser-tests
[arvados-workbench2.git] / cypress / support / commands.js
index c2b222a74e15734d60e24edb2f9114040672cd06..216012c4c1251e9b46e3f25dc29da6d5ca7447e4 100644 (file)
@@ -116,6 +116,16 @@ Cypress.Commands.add(
     }
 )
 
+
+Cypress.Commands.add(
+    "createWorkflow", (token, data) => {
+        return cy.createResource(token, 'workflows', {
+            workflow: JSON.stringify(data),
+            ensure_unique_name: true
+        })
+    }
+)
+
 Cypress.Commands.add(
     "createCollection", (token, data) => {
         return cy.createResource(token, 'collections', {