From 4ba63b753e5f7b415b126cd658afc7ad44105293 Mon Sep 17 00:00:00 2001 From: Emma Hegarty Date: Mon, 23 Oct 2023 15:01:22 +0200 Subject: [PATCH] fix: flaky sidebar test 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 --- cypress/e2e/home_page.cy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/home_page.cy.js b/cypress/e2e/home_page.cy.js index 977ac6bbb..86d864087 100644 --- a/cypress/e2e/home_page.cy.js +++ b/cypress/e2e/home_page.cy.js @@ -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', () => {