From 4d1d5d9dbc5555090843b012f1d84ef71187a20c Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:09:39 +0100 Subject: [PATCH] test: Fix flaky mapping test (no-changelog) (#12449) --- cypress/e2e/14-mapping.cy.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/14-mapping.cy.ts b/cypress/e2e/14-mapping.cy.ts index 46448b4966..4ebce02d9d 100644 --- a/cypress/e2e/14-mapping.cy.ts +++ b/cypress/e2e/14-mapping.cy.ts @@ -115,6 +115,8 @@ describe('Data mapping', () => { }); it('maps expressions from json view', () => { + // ADO-3063 - followup to make this viewport global + cy.viewport('macbook-16'); cy.fixture('Test_workflow_3.json').then((data) => { cy.get('body').paste(JSON.stringify(data)); }); @@ -123,17 +125,17 @@ describe('Data mapping', () => { workflowPage.actions.openNode('Set'); ndv.actions.switchInputMode('JSON'); + ndv.getters.inputDataContainer().should('exist'); + ndv.getters .inputDataContainer() - .should('exist') .find('.json-data') .should( 'have.text', '[{"input": [{"count": 0,"with space": "!!","with.dot": "!!","with"quotes": "!!"}]},{"input": [{"count": 1}]}]', - ) - .find('span') - .contains('"count"') - .realMouseDown(); + ); + + ndv.getters.inputDataContainer().find('span').contains('"count"').realMouseDown(); ndv.actions.mapToParameter('value'); ndv.getters.inlineExpressionEditorInput().should('have.text', '{{ $json.input[0].count }}');