generated from neurobagel/react-bagel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Implemented landing view (#37)
* Added custom `spin-slow` animation * Added `landing-emoji` * Added content for landing view * Added assertions for the content of `Landing` component * Set the viewport for cypress * Updated `Simple` e2e test
- Loading branch information
Showing
7 changed files
with
48 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import Landing from '../../src/components/Landing'; | ||
|
||
describe('Landing', () => { | ||
it('should render correctly', () => { | ||
it('should render the content of Landing view correctly', () => { | ||
cy.mount(<Landing />); | ||
cy.contains('Welcome'); | ||
cy.contains('Welcome to the Neurobagel Annotation Tool'); | ||
cy.get('img[alt="Neurobagel Logo"]').should('be.visible'); | ||
cy.get('img[alt="Neurobagel Logo"]').should('have.attr', 'alt', 'Neurobagel Logo'); | ||
cy.get('img[alt="Landing emoji"]').should('be.visible'); | ||
cy.get('img[alt="Landing emoji"]').should('have.attr', 'alt', 'Landing emoji'); | ||
cy.get('[data-cy="get started-button"]').should('be.visible'); | ||
}); | ||
}); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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