fix(test): focus on jump to field before typing
This commit is contained in:
parent
f38424c09c
commit
d79ac32f10
1 changed files with 5 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue