From ab8763f927c1f831353d40dfdc66f754e78a6030 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Tue, 20 Apr 2021 16:07:06 -0300 Subject: [PATCH] 17500: Avoids session data leaking within one test. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/support/commands.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 36358991f0..dbb9cd0b1f 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)'); -- 2.30.2