test(editor): Fix flaky frontend inline expression editor test (#20327)

This commit is contained in:
yehorkardash 2025-10-02 16:59:03 +00:00 committed by GitHub
parent c4326ed7f6
commit 32c60f0b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
});
});