diff --git a/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.test.ts b/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.test.ts
index 56dbec6f301..bf7f18f1458 100644
--- a/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.test.ts
+++ b/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.test.ts
@@ -368,8 +368,9 @@ describe('VariableModal', () => {
if (!valueInput) throw new Error('Input not found');
// Just change the value, not the key
+ await userEvent.click(valueInput);
await userEvent.clear(valueInput);
- await userEvent.type(valueInput, 'new value');
+ await userEvent.type(valueInput, 'new value', { delay: 10 });
// Should not show duplicate error for own key
expect(saveButton).toBeEnabled();
@@ -488,7 +489,7 @@ describe('VariableModal', () => {
if (!keyInput || !valueInput) throw new Error('Inputs not found');
await userEvent.type(keyInput, 'NEW_VAR');
- await userEvent.type(valueInput, 'value');
+ await userEvent.type(valueInput, 'value', { delay: 10 });
await userEvent.click(saveButton);
// Give time for the async operation to complete
@@ -525,7 +526,7 @@ describe('VariableModal', () => {
if (!valueInput) throw new Error('Input not found');
await userEvent.clear(valueInput);
- await userEvent.type(valueInput, 'new value');
+ await userEvent.type(valueInput, 'new value', { delay: 10 });
await userEvent.click(saveButton);
// Give time for the async operation to complete
diff --git a/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.vue b/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.vue
index 862fdb0bac6..bffebbe78e4 100644
--- a/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.vue
+++ b/packages/frontend/editor-ui/src/features/settings/environments.ee/components/VariableModal.vue
@@ -1,7 +1,7 @@
@@ -232,6 +243,7 @@ async function handleSubmit() {