16719: Don't try to click something to force logout, just reload the page. 16719-collection-version-basic-ui
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 5 Nov 2020 22:16:33 +0000 (19:16 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 5 Nov 2020 22:16:33 +0000 (19:16 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

cypress/integration/login.spec.js

index 8f97665556d9b16bd5d6b2491b3fb7739f46b65f..25c8cd4b8a4179cf9f60ad2e7905e8204fac4788 100644 (file)
@@ -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');
     })