chore: Fix NodeTitle.test.ts for Node 22 (no-changelog) (#16763)

This commit is contained in:
Charlie Kolb
2025-06-27 11:57:07 +02:00
committed by GitHub
parent 3ba8a84d2b
commit 3fb8bbb59f
3 changed files with 9 additions and 4 deletions

View File

@@ -70,9 +70,10 @@ describe('NodeTitle', () => {
},
});
const renameInput = getByTestId('inline-edit-input');
await userEvent.type(renameInput, 'New Node Name');
const area = getByTestId('inline-editable-area');
await userEvent.type(area, 'New Node Name');
await userEvent.keyboard('{Escape}');
await userEvent.click(renameInput);
expect(renameInput).toHaveValue('Test Node');
expect(emitted('update:model-value')).toBeUndefined();
});