From d2360e9dddf8efd4af0e73d882cd99c2ffd618e4 Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Mon, 24 Feb 2025 10:57:55 +0100 Subject: [PATCH] Fix indentation --- cypress/e2e/48-subworkflow-inputs.cy.ts | 67 +++++++++++++------------ 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/cypress/e2e/48-subworkflow-inputs.cy.ts b/cypress/e2e/48-subworkflow-inputs.cy.ts index 716d253b8c..02ccc58bd0 100644 --- a/cypress/e2e/48-subworkflow-inputs.cy.ts +++ b/cypress/e2e/48-subworkflow-inputs.cy.ts @@ -139,41 +139,42 @@ describe('Sub-workflow creation and typed usage', () => { cy.window().then((win) => { cy.stub(win, 'open').callsFake((url) => { cy.visit(url); - selectResourceLocatorItem('workflowId', 0, 'Create a'); - - openNode('When Executed by Another Workflow'); - - getParameterInputByName('inputSource').click(); - - getVisiblePopper() - .getByTestId('parameter-input') - .eq(0) - .type('Using JSON Example{downArrow}{enter}'); - - const exampleJson = - '{{}' + EXAMPLE_FIELDS.map((x) => `"${x[0]}": ${makeExample(x[1])}`).join(',') + '}'; - getParameterInputByName('jsonExample') - .find('.cm-line') - .eq(0) - .type(`{selectAll}{backspace}${exampleJson}{enter}`); - - // first one doesn't work for some reason, might need to wait for something? - clickExecuteNode(); - - validateAndReturnToParent( - DEFAULT_SUBWORKFLOW_NAME_2, - 2, - EXAMPLE_FIELDS.map((f) => f[0]), - ); - - assertOutputTableContent([ - ['[null]', '[null]', '[null]', '[null]', '[null]', 'true'], - ['[null]', '[null]', '[null]', '[null]', '[null]', 'true'], - ]); - - clickExecuteNode(); }); }); + + selectResourceLocatorItem('workflowId', 0, 'Create a'); + + openNode('When Executed by Another Workflow'); + + getParameterInputByName('inputSource').click(); + + getVisiblePopper() + .getByTestId('parameter-input') + .eq(0) + .type('Using JSON Example{downArrow}{enter}'); + + const exampleJson = + '{{}' + EXAMPLE_FIELDS.map((x) => `"${x[0]}": ${makeExample(x[1])}`).join(',') + '}'; + getParameterInputByName('jsonExample') + .find('.cm-line') + .eq(0) + .type(`{selectAll}{backspace}${exampleJson}{enter}`); + + // first one doesn't work for some reason, might need to wait for something? + clickExecuteNode(); + + validateAndReturnToParent( + DEFAULT_SUBWORKFLOW_NAME_2, + 2, + EXAMPLE_FIELDS.map((f) => f[0]), + ); + + assertOutputTableContent([ + ['[null]', '[null]', '[null]', '[null]', '[null]', 'false'], + ['[null]', '[null]', '[null]', '[null]', '[null]', 'false'], + ]); + + clickExecuteNode(); }); it('should show node issue when no fields are defined in manual mode', () => {