mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
test: Fix flaky mapping test (no-changelog) (#12449)
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
This commit is contained in:
parent
9674208421
commit
4d1d5d9dbc
|
@ -115,6 +115,8 @@ describe('Data mapping', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('maps expressions from json view', () => {
|
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.fixture('Test_workflow_3.json').then((data) => {
|
||||||
cy.get('body').paste(JSON.stringify(data));
|
cy.get('body').paste(JSON.stringify(data));
|
||||||
});
|
});
|
||||||
|
@ -123,17 +125,17 @@ describe('Data mapping', () => {
|
||||||
workflowPage.actions.openNode('Set');
|
workflowPage.actions.openNode('Set');
|
||||||
ndv.actions.switchInputMode('JSON');
|
ndv.actions.switchInputMode('JSON');
|
||||||
|
|
||||||
|
ndv.getters.inputDataContainer().should('exist');
|
||||||
|
|
||||||
ndv.getters
|
ndv.getters
|
||||||
.inputDataContainer()
|
.inputDataContainer()
|
||||||
.should('exist')
|
|
||||||
.find('.json-data')
|
.find('.json-data')
|
||||||
.should(
|
.should(
|
||||||
'have.text',
|
'have.text',
|
||||||
'[{"input": [{"count": 0,"with space": "!!","with.dot": "!!","with"quotes": "!!"}]},{"input": [{"count": 1}]}]',
|
'[{"input": [{"count": 0,"with space": "!!","with.dot": "!!","with"quotes": "!!"}]},{"input": [{"count": 1}]}]',
|
||||||
)
|
);
|
||||||
.find('span')
|
|
||||||
.contains('"count"')
|
ndv.getters.inputDataContainer().find('span').contains('"count"').realMouseDown();
|
||||||
.realMouseDown();
|
|
||||||
|
|
||||||
ndv.actions.mapToParameter('value');
|
ndv.actions.mapToParameter('value');
|
||||||
ndv.getters.inlineExpressionEditorInput().should('have.text', '{{ $json.input[0].count }}');
|
ndv.getters.inlineExpressionEditorInput().should('have.text', '{{ $json.input[0].count }}');
|
||||||
|
|
Loading…
Reference in a new issue