fix(tests): clear filter before typing

This commit is contained in:
Rucha Mahabal 2021-07-19 16:26:17 +05:30
parent 9d89b2afcf
commit 7270ab5c20
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ context('Organizational Chart', () => {
cy.awesomebar('Organizational Chart'); cy.awesomebar('Organizational Chart');
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input'); cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
cy.get('@input').type('Test Org Chart'); cy.get('@input').clear().type('Test Org Chart');
cy.get('body').click(); cy.get('body').click();
cy.wait(500); cy.wait(500);

View File

@ -6,7 +6,7 @@ context('Organizational Chart Mobile', () => {
cy.awesomebar('Organizational Chart'); cy.awesomebar('Organizational Chart');
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input'); cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
cy.get('@input').type('Test Org Chart'); cy.get('@input').clear().type('Test Org Chart');
cy.get('body').click(); cy.get('body').click();
cy.wait(500); cy.wait(500);