fix(test): focus on jump to field before typing

This commit is contained in:
Saqib Ansari 2026-01-02 14:52:57 +05:30
parent f38424c09c
commit d79ac32f10

View file

@ -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}")