projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '17308-property-editor-fixes'
[arvados.git]
/
cypress
/
support
/
commands.js
diff --git
a/cypress/support/commands.js
b/cypress/support/commands.js
index 228e1cabb14e3b68fe43705add938c03cc45bb0d..bba04ba85977bf9a95d34e9792a3fcb435902f5a 100644
(file)
--- 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', {
Cypress.Commands.add(
"createCollection", (token, data) => {
return cy.createResource(token, 'collections', {
@@
-171,3
+181,9
@@
Cypress.Commands.add(
cy.get('div#root').should('not.contain', 'Your account is inactive');
}
)
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