From 5a835b3ba8d8db2cd1893f0e8278b31b670c3735 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Thu, 5 Nov 2020 19:16:33 -0300 Subject: [PATCH] 16719: Don't try to click something to force logout, just reload the page. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/integration/login.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cypress/integration/login.spec.js b/cypress/integration/login.spec.js index 8f976655..25c8cd4b 100644 --- a/cypress/integration/login.spec.js +++ b/cypress/integration/login.spec.js @@ -84,7 +84,6 @@ describe('Login tests', function() { cy.url().should('contain', '/projects/'); cy.get('div#root').should('contain', 'Arvados Workbench (zzzzz)'); cy.get('div#root').should('not.contain', 'Your account is inactive'); - cy.get('[data-cy=breadcrumb-first]'); // Invalidate own token. const tokenUuid = activeUser.token.split('/')[1]; cy.doRequest('PUT', `/arvados/v1/api_client_authorizations/${tokenUuid}`, { @@ -94,7 +93,7 @@ describe('Login tests', function() { }) }, null, activeUser.token, true); // Should log the user out. - cy.get('[data-cy=breadcrumb-first]').click(); + cy.visit('/'); cy.get('div#root').should('contain', 'Please log in'); }) -- 2.30.2