From 32c60f0b5903fd5e8e4a1f692da55722d98efb2e Mon Sep 17 00:00:00 2001 From: yehorkardash Date: Thu, 2 Oct 2025 16:59:03 +0000 Subject: [PATCH] test(editor): Fix flaky frontend inline expression editor test (#20327) --- .../tests/ui/11-inline-expression-editor.spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts b/packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts index c8508455181..dc0509e466f 100644 --- a/packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts +++ b/packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts @@ -31,8 +31,7 @@ test.describe('Inline expression editor', () => { await expect(n8n.ndv.getInlineExpressionEditorOutput()).toBeHidden(); }); - // NODE-3721 - test.skip('should switch between expression and fixed using keyboard', async ({ n8n }) => { + test('should switch between expression and fixed using keyboard', async ({ n8n }) => { await n8n.canvas.addNode(EDIT_FIELDS_SET_NODE_NAME); // Should switch to expression with = @@ -46,12 +45,10 @@ test.describe('Inline expression editor', () => { // Should switch back to fixed with backspace on empty expression await n8n.ndv.clearExpressionEditor('value'); - const parameterInput = n8n.ndv.getParameterInput('value'); + const parameterInput = n8n.ndv.getParameterInput('value').getByRole('textbox'); await parameterInput.click(); await parameterInput.focus(); await parameterInput.press('Backspace'); - // eslint-disable-next-line playwright/no-wait-for-timeout - await n8n.page.waitForTimeout(1000); await expect(n8n.ndv.getInlineExpressionEditorInput()).toBeHidden(); }); });