Skip to content

Commit

Permalink
fix: add avatar-based logout test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Nov 18, 2024
1 parent 69c6f3d commit 9aae019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,10 @@ describe('Logging in and out', () => {
cy.visit('/catalog/search')
})
it('logs out the user', () => {
cy.get('gn-ui-avatar').should('be.visible')
cy.get('md-editor-sidebar').find('gn-ui-button').eq(1).click()
cy.url().should('include', '/catalog.signin?redirect=')
cy.get('gn-ui-avatar').should('not.exist')
})
})
})

0 comments on commit 9aae019

Please sign in to comment.