From d79ac32f10634d30687be8a4b3bcae9570cfff8c Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Fri, 2 Jan 2026 14:52:57 +0530 Subject: [PATCH] fix(test): focus on jump to field before typing --- cypress/integration/form.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/integration/form.js b/cypress/integration/form.js index 5156ae06b6..43c334cc04 100644 --- a/cypress/integration/form.js +++ b/cypress/integration/form.js @@ -1,7 +1,11 @@ const jump_to_field = (field_label) => { cy.get("body") .type("{esc}") // lose focus if any - .type("{ctrl+j}") // jump to field + .type("{ctrl+j}"); // jump to field + + cy.get(".modal input[type='text']").first().focus(); + + cy.get("body") .type(field_label) .wait(1000) .type("{enter}")