From: Lucas Di Pentima Date: Thu, 5 Nov 2020 22:16:33 +0000 (-0300) Subject: 16719: Don't try to click something to force logout, just reload the page. X-Git-Tag: 2.1.1~7^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/5a835b3ba8d8db2cd1893f0e8278b31b670c3735?hp=-c 16719: Don't try to click something to force logout, just reload the page. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 5a835b3ba8d8db2cd1893f0e8278b31b670c3735 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'); })