- cy.get('[data-cy=breadcrumb-first]').click();
- cy.get('div#root').should('contain', 'Please log in');
+
+ cy.getAll('@testProject1').then(([testProject1]) => {
+ cy.get('main').contains(testProject1.name).click();
+ cy.get('div#root').should('contain', 'Please log in');
+ // Should retain last visited url when auth is invalidated
+ cy.url().should('contain', `/projects/${testProject1.uuid}`);
+ })