Skip to content

Commit

Permalink
fix: flaky sidebar test
Browse files Browse the repository at this point in the history
adds test for x button to close sidebar
addresses #394 since the sidebar is now closed again in the previous test and can be re-opened with the toggle
  • Loading branch information
EmmaHegarty committed Oct 24, 2023
1 parent 8516c87 commit 4ba63b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/home_page.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ describe('Ors map client', () => {
cy.get('.open-menu').click()
cy.get('.sidebar').should('be.visible')
cy.get('.places-and-directions-tab-form')
cy.get('.no-padding.pr2').eq(1).click()
cy.get('.sidebar').should('not.be.visible')
})

it('toggles the sidebar correctly', () => {
Expand Down

0 comments on commit 4ba63b7

Please sign in to comment.