From cfd12e966823ebb7e490f68f65e26b4aac3e50e5 Mon Sep 17 00:00:00 2001 From: Friedjoff Trautwein Date: Mon, 15 Jun 2020 11:41:48 +0200 Subject: [PATCH] fix: force click --- cypress/integration/projection.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/integration/projection.spec.js b/cypress/integration/projection.spec.js index 44505da6..c379927f 100644 --- a/cypress/integration/projection.spec.js +++ b/cypress/integration/projection.spec.js @@ -48,8 +48,10 @@ describe('Projection in form mode', () => { selectField('ForestEcoregion', '.item:first-child'); selectField('AltitudinalZone', '.item:last-child'); selectField('ForestType', '.item:first-child'); - cy.get(`[data-cypress=projectionFormTransition] .ui:last-child`).click(); - selectField('TransitionForestType', '.item:first-child'); + cy.get(`[data-cypress=projectionFormTransition] .ui:last-child`).click({ + force: true, + }); + selectField('TransitionForestType', '.item:first-child', true); selectField('TransitionAltitudinalZone', '.item:last-child', true); selectField('TargetAltitudinalZone', '.item:first-child', true); cy.get('[data-cypress=projectionResultMenuItem]').contains(/\w+\s\(\w+\)/);