Browse Source

fix: sider

develop
Rucha Mahabal 3 years ago
parent
commit
951b3a4313
  1. 2
      cypress/integration/test_organizational_chart_desktop.js
  2. 35
      cypress/integration/test_organizational_chart_mobile.js

2
cypress/integration/test_organizational_chart_desktop.js

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

35
cypress/integration/test_organizational_chart_mobile.js

@ -7,25 +7,22 @@ context('Organizational Chart Mobile', () => {
cy.window().its('frappe.csrf_token').then(csrf_token => {
return cy.request({
url: `/api/method/erpnext.tests.ui_test_helpers.create_employee_records`,
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'X-Frappe-CSRF-Token': csrf_token
},
timeout: 60000
})
.then(res => {
expect(res.status).eq(200);
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
cy.get('@input')
.clear({ force: true })
.type('Test Org Chart{enter}', { force: true })
.blur({ force: true });
cy.get('body').click();
});
url: `/api/method/erpnext.tests.ui_test_helpers.create_employee_records`,
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'X-Frappe-CSRF-Token': csrf_token
},
timeout: 60000
}).then(res => {
expect(res.status).eq(200);
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
cy.get('@input')
.clear({ force: true })
.type('Test Org Chart{enter}', { force: true })
.blur({ force: true });
});
});
});

Loading…
Cancel
Save