fix: tests

This commit is contained in:
Rucha Mahabal 2021-07-19 17:34:15 +05:30
parent e5406ece83
commit 2c7b500d16
2 changed files with 6 additions and 6 deletions

View File

@ -4,10 +4,10 @@ context('Organizational Chart', () => {
cy.visit('/app/website');
cy.awesomebar('Organizational Chart');
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
cy.get('@input').clear().wait(200).type('Test Org Chart');
cy.get('.frappe-control[data-fieldname=company] input').first().focus().as('input');
cy.get('@input').clear().wait(200).type('Test Org Chart', { force: true });
cy.get('@input').type('{enter}', { delay: 100 });
cy.get('@input').blur();
cy.get('@input').blur({ force: true });
cy.wait(500);
});

View File

@ -5,10 +5,10 @@ context('Organizational Chart Mobile', () => {
cy.visit('/app/website');
cy.awesomebar('Organizational Chart');
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
cy.get('@input').clear().wait(200).type('Test Org Chart');
cy.get('.frappe-control[data-fieldname=company] input').first().focus().as('input');
cy.get('@input').clear().wait(200).type('Test Org Chart', { force: true });
cy.get('@input').type('{enter}', { delay: 100 });
cy.get('@input').blur();
cy.get('@input').blur({ force: true });
cy.wait(500);
});