X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ba850047c085520c9604ffa6cb2e763b5500d135..409d38425d383c81606220782f1abe9cd014aab5:/cypress/support/commands.js diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 2a7f350a..53099d37 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -176,7 +176,7 @@ Cypress.Commands.add( Cypress.Commands.add( "loginAs", (user) => { cy.visit(`/token/?api_token=${user.token}`); - cy.url().should('contain', '/projects/'); + cy.url({timeout: 10000}).should('contain', '/projects/'); cy.get('div#root').should('contain', 'Arvados Workbench (zzzzz)'); cy.get('div#root').should('not.contain', 'Your account is inactive'); } @@ -188,6 +188,12 @@ Cypress.Commands.add( } ) +Cypress.Commands.add( + "goToPath", (path) => { + return cy.window().its('appHistory').invoke('push', path); + } +) + Cypress.Commands.add('getAll', (...elements) => { const promise = cy.wrap([], { log: false })