-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Made authentication optional on the UI (#214)
* Made authentication optional on UI * Set default visiblity of `AuthDialog` to `false` Renamed references of modal to dialog to avoid confusion with image modal * Updated `AuthDialog` component test * Implemented an e2e test for auth dialog and profile menu functionality * Updated `Navbar` component test * Updated e2e-test workflow config file * Addressed suggested changes from PR review
- Loading branch information
Showing
9 changed files
with
106 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
describe('Authentication flow', () => { | ||
it('Auth dialog is not visible by default and user is not logged in', () => { | ||
cy.visit('/'); | ||
cy.get('[data-cy="auth-dialog"]').should('not.exist'); | ||
cy.get('.MuiAvatar-root').click(); | ||
cy.get('[data-cy="login-button"]').should('exist'); | ||
}); | ||
it('Auth dialog can be opened and closed', () => { | ||
cy.visit('/'); | ||
cy.get('.MuiAvatar-root').click(); | ||
cy.get('[data-cy="login-button"]').click(); | ||
cy.get('[data-cy="auth-dialog"]').should('be.visible'); | ||
cy.get('[data-cy="close-auth-dialog-button"]').should('be.visible'); | ||
cy.get('[data-cy="close-auth-dialog-button"]').click(); | ||
cy.get('[data-cy="auth-dialog"]').should('not.exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters