fix: sider

This commit is contained in:
Rucha Mahabal 2021-07-20 12:19:44 +05:30
parent 41dd0c5a8a
commit 0222ee0358
2 changed files with 16 additions and 21 deletions

View File

@ -21,8 +21,6 @@ context('Organizational Chart', () => {
.clear({ force: true }) .clear({ force: true })
.type('Test Org Chart{enter}', { force: true }) .type('Test Org Chart{enter}', { force: true })
.blur({ force: true }); .blur({ force: true });
cy.get('body').click();
}); });
}); });
}); });

View File

@ -15,16 +15,13 @@ context('Organizational Chart Mobile', () => {
'X-Frappe-CSRF-Token': csrf_token 'X-Frappe-CSRF-Token': csrf_token
}, },
timeout: 60000 timeout: 60000
}) }).then(res => {
.then(res => {
expect(res.status).eq(200); expect(res.status).eq(200);
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') cy.get('@input')
.clear({ force: true }) .clear({ force: true })
.type('Test Org Chart{enter}', { force: true }) .type('Test Org Chart{enter}', { force: true })
.blur({ force: true }); .blur({ force: true });
cy.get('body').click();
}); });
}); });
}); });