mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-28 15:27:03 +02:00
test(editor): Fix flaky frontend inline expression editor test (#20327)
This commit is contained in:
parent
c4326ed7f6
commit
32c60f0b59
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user