X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/10dcb97234c4dc088ac12e7e4373521a018596f6..4f87358795fd7e711cf02ae5e2aed849c7555393:/cypress/support/commands.js diff --git a/cypress/support/commands.js b/cypress/support/commands.js index c2b222a7..216012c4 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -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', {