Skip to content

Commit

Permalink
Add a test on the navigation bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Oct 5, 2023
1 parent 1f3276c commit 33cb3f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/homepage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ describe('Homepage', () => {
cy.visit('')
cy.get('h1').should('contain', 'Welcome to the SPARC Portal')
})
it('Navigation Bar', () => {
cy.visit('')
cy.get('.mobile-navigation > :nth-child(1) > :nth-child(1) > a').should('contain', 'Data')
})
})

0 comments on commit 33cb3f4

Please sign in to comment.