From e9fc9edae400129e9332766db5628462bfebcd28 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Thu, 8 Sep 2022 16:04:47 -0400 Subject: [PATCH] test: reduce agenda-neue floor plan drop pin flakiness --- cypress/e2e/meeting/agenda-neue.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/meeting/agenda-neue.cy.js b/cypress/e2e/meeting/agenda-neue.cy.js index 7e99e039c..40187e7b5 100644 --- a/cypress/e2e/meeting/agenda-neue.cy.js +++ b/cypress/e2e/meeting/agenda-neue.cy.js @@ -1329,7 +1329,7 @@ describe(`meeting -> floor-plan-neue`, () => { // -> ROOMS - it(`can select rooms`, () => { + it(`can select rooms`, { retries: 2 }, () => { const floor = meetingData.floors[0] cy.get('.floorplan .floorplan-floors > .nav-link').first().click() cy.get('.floorplan .floorplan-rooms > .list-group-item').should('have.length', floor.rooms.length) @@ -1349,7 +1349,7 @@ describe(`meeting -> floor-plan-neue`, () => { cy.get('.floorplan .floorplan-plan > img').then(floorImg => { const planxRatio = floorImg[0].width / floor.width const planyRatio = floorImg[0].height / floor.height - cy.get('.floorplan .floorplan-plan-pin').should('exist').and('be.visible').then(el => { + cy.get('.floorplan .floorplan-plan-pin').should('exist').then(el => { const pinMarginLeft = parseInt(win.getComputedStyle(el[0]).getPropertyValue('margin-left').match(/\d+/)) const xPos = Math.round((room.left + (room.right - room.left) / 2) * planxRatio) - 25 + pinMarginLeft const yPos = Math.round((room.top + (room.bottom - room.top) / 2) * planyRatio) - 40