diff --git a/cypress/e2e/14-data-transformation-expressions.cy.ts b/cypress/e2e/14-data-transformation-expressions.cy.ts index da08ec8817..21c958d691 100644 --- a/cypress/e2e/14-data-transformation-expressions.cy.ts +++ b/cypress/e2e/14-data-transformation-expressions.cy.ts @@ -19,6 +19,7 @@ describe('Data transformation expressions', () => { const output = 'monday is TODAY'; ndv.getters.inlineExpressionEditorInput().clear().type(input); + ndv.getters.inlineExpressionEditorOutput().should('have.text', output); ndv.actions.execute(); ndv.getters.outputDataContainer().should('be.visible'); ndv.getters.outputDataContainer().contains(output); @@ -34,6 +35,7 @@ describe('Data transformation expressions', () => { const output = 'hello@n8n.io false'; ndv.getters.inlineExpressionEditorInput().clear().type(input); + ndv.getters.inlineExpressionEditorOutput().should('have.text', output); ndv.actions.execute(); ndv.getters.outputDataContainer().should('be.visible'); ndv.getters.outputDataContainer().contains(output); @@ -49,6 +51,7 @@ describe('Data transformation expressions', () => { const output = '9.12'; ndv.getters.inlineExpressionEditorInput().clear().type(input); + ndv.getters.inlineExpressionEditorOutput().should('have.text', output); ndv.actions.execute(); ndv.getters.outputDataContainer().should('be.visible'); ndv.getters.outputDataContainer().contains(output); @@ -64,6 +67,7 @@ describe('Data transformation expressions', () => { const output = 'hello@n8n.io false'; ndv.getters.inlineExpressionEditorInput().clear().type(input); + ndv.getters.inlineExpressionEditorOutput().should('have.text', output); ndv.actions.execute(); ndv.getters.outputDataContainer().should('be.visible'); ndv.getters.outputDataContainer().contains(output); @@ -78,6 +82,7 @@ describe('Data transformation expressions', () => { const output = 'true 3'; ndv.getters.inlineExpressionEditorInput().clear().type(input); + ndv.getters.inlineExpressionEditorOutput().should('have.text', output); ndv.actions.execute(); ndv.getters.outputDataContainer().find('[class*=value_]').should('exist'); ndv.getters.outputDataContainer().find('[class*=value_]').should('contain', output); @@ -93,6 +98,7 @@ describe('Data transformation expressions', () => { const output = '1 3'; ndv.getters.inlineExpressionEditorInput().clear().type(input); + ndv.getters.inlineExpressionEditorOutput().should('have.text', output); ndv.actions.execute(); ndv.getters.outputDataContainer().find('[class*=value_]').should('exist'); ndv.getters.outputDataContainer().find('[class*=value_]').should('contain', output); diff --git a/cypress/pages/ndv.ts b/cypress/pages/ndv.ts index 4eeb27094f..3de9a13917 100644 --- a/cypress/pages/ndv.ts +++ b/cypress/pages/ndv.ts @@ -39,6 +39,7 @@ export class NDV extends BasePage { inputTbodyCell: (row: number, col: number) => this.getters.inputTableRow(row).find('td').eq(col), inlineExpressionEditorInput: () => cy.getByTestId('inline-expression-editor-input'), + inlineExpressionEditorOutput: () => cy.getByTestId('inline-expression-editor-output'), nodeParameters: () => cy.getByTestId('node-parameters'), parameterInput: (parameterName: string) => cy.getByTestId(`parameter-input-${parameterName}`), parameterInputIssues: (parameterName: string) => diff --git a/packages/editor-ui/src/components/ExpressionEditorModal/ExpressionEditorModalInput.vue b/packages/editor-ui/src/components/ExpressionEditorModal/ExpressionEditorModalInput.vue index 74eaa2a39f..1f9b7b2930 100644 --- a/packages/editor-ui/src/components/ExpressionEditorModal/ExpressionEditorModalInput.vue +++ b/packages/editor-ui/src/components/ExpressionEditorModal/ExpressionEditorModalInput.vue @@ -2,159 +2,142 @@
- '.length]); - } - - if (node.type.name === 'Script') { - scriptRanges.push([node.from - ' diff --git a/packages/editor-ui/src/components/InlineExpressionEditor/InlineExpressionEditorInput.vue b/packages/editor-ui/src/components/InlineExpressionEditor/InlineExpressionEditorInput.vue index dfd4b78047..de0a419915 100644 --- a/packages/editor-ui/src/components/InlineExpressionEditor/InlineExpressionEditorInput.vue +++ b/packages/editor-ui/src/components/InlineExpressionEditor/InlineExpressionEditorInput.vue @@ -2,16 +2,14 @@ - diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index c977df6626..bde01887f3 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -90,7 +90,7 @@ :rows="getArgument('rows')" :disable-expression-coloring="!isHtmlNode(node)" :disable-expression-completions="!isHtmlNode(node)" - fill-parent + fullscreen @update:model-value="valueChangedDebounced" />