X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/4043ab4e285f08e9d56ffd8f8a401b68816fc841..ab8763f927c1f831353d40dfdc66f754e78a6030:/cypress/support/commands.js diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 36358991..dbb9cd0b 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -183,6 +183,8 @@ Cypress.Commands.add( Cypress.Commands.add( "loginAs", (user) => { + cy.clearCookies() + cy.clearLocalStorage() cy.visit(`/token/?api_token=${user.token}`); cy.url({timeout: 10000}).should('contain', '/projects/'); cy.get('div#root').should('contain', 'Arvados Workbench (zzzzz)');