}
)
+
+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', {
cy.get('div#root').should('not.contain', 'Your account is inactive');
}
)
+
+Cypress.Commands.add(
+ "doSearch", (searchTerm) => {
+ cy.get('[data-cy=searchbar-input-field]').type(`{selectall}${searchTerm}{enter}`);
+ }
+)
\ No newline at end of file