feat(cypress): Add awesomebar command
This commit is contained in:
parent
8bb2288992
commit
b6ff770c61
1 changed files with 5 additions and 1 deletions
|
|
@ -49,4 +49,8 @@ Cypress.Commands.add('fill_field', (fieldname, value, fieldtype='Data') => {
|
|||
} else {
|
||||
return cy.get('@input').type(value);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add('awesomebar', (text) => {
|
||||
cy.get('#navbar-search').type(`${text}{downarrow}{enter}`, { delay: 100 });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue