commit | 7270ab5c2057ec21b2baf37daf937905f1886dc1 | [log] [tgz] |
---|---|---|
author | Rucha Mahabal <ruchamahabal2@gmail.com> | Mon Jul 19 16:26:17 2021 +0530 |
committer | Rucha Mahabal <ruchamahabal2@gmail.com> | Mon Jul 19 16:26:17 2021 +0530 |
tree | 26e5b26faf6bf40df2981a31aeb45abd8dfe3cef | |
parent | 9d89b2afcf2cb2cffa8857dc66b0289a165b711b [diff] |
fix(tests): clear filter before typing
diff --git a/cypress/integration/test_organizational_chart_desktop.js b/cypress/integration/test_organizational_chart_desktop.js index b11b9ea..516d254 100644 --- a/cypress/integration/test_organizational_chart_desktop.js +++ b/cypress/integration/test_organizational_chart_desktop.js
@@ -5,7 +5,7 @@ cy.awesomebar('Organizational Chart'); 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.wait(500);
diff --git a/cypress/integration/test_organizational_chart_mobile.js b/cypress/integration/test_organizational_chart_mobile.js index a42562f..503db68 100644 --- a/cypress/integration/test_organizational_chart_mobile.js +++ b/cypress/integration/test_organizational_chart_mobile.js
@@ -6,7 +6,7 @@ cy.awesomebar('Organizational Chart'); 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.wait(500);