Skip to content

Commit fa55853

Browse files
committed
fix: sider
1 parent eb65ce6 commit fa55853

2 files changed

Lines changed: 38 additions & 38 deletions

File tree

cypress/integration/test_organizational_chart_desktop.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ context('Organizational Chart', () => {
66

77
cy.window().its('frappe.csrf_token').then(csrf_token => {
88
return cy.request({
9-
url: `/api/method/erpnext.tests.ui_test_helpers.create_employee_records`,
10-
method: 'POST',
11-
headers: {
12-
Accept: 'application/json',
13-
'Content-Type': 'application/json',
14-
'X-Frappe-CSRF-Token': csrf_token
15-
},
16-
timeout: 60000
17-
})
18-
.then(res => {
19-
expect(res.status).eq(200);
20-
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
21-
cy.get('@input')
22-
.clear({ force: true })
23-
.type('Test Org Chart{enter}', { force: true })
24-
.blur({ force: true });
25-
26-
cy.get('body').click();
27-
});
9+
url: `/api/method/erpnext.tests.ui_test_helpers.create_employee_records`,
10+
method: 'POST',
11+
headers: {
12+
Accept: 'application/json',
13+
'Content-Type': 'application/json',
14+
'X-Frappe-CSRF-Token': csrf_token
15+
},
16+
timeout: 60000
17+
})
18+
.then(res => {
19+
expect(res.status).eq(200);
20+
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
21+
cy.get('@input')
22+
.clear({ force: true })
23+
.type('Test Org Chart{enter}', { force: true })
24+
.blur({ force: true });
25+
26+
cy.get('body').click();
27+
});
2828
});
2929
});
3030

cypress/integration/test_organizational_chart_mobile.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ context('Organizational Chart Mobile', () => {
77

88
cy.window().its('frappe.csrf_token').then(csrf_token => {
99
return cy.request({
10-
url: `/api/method/erpnext.tests.ui_test_helpers.create_employee_records`,
11-
method: 'POST',
12-
headers: {
13-
Accept: 'application/json',
14-
'Content-Type': 'application/json',
15-
'X-Frappe-CSRF-Token': csrf_token
16-
},
17-
timeout: 60000
18-
})
19-
.then(res => {
20-
expect(res.status).eq(200);
21-
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
22-
cy.get('@input')
23-
.clear({ force: true })
24-
.type('Test Org Chart{enter}', { force: true })
25-
.blur({ force: true });
26-
27-
cy.get('body').click();
28-
});
10+
url: `/api/method/erpnext.tests.ui_test_helpers.create_employee_records`,
11+
method: 'POST',
12+
headers: {
13+
Accept: 'application/json',
14+
'Content-Type': 'application/json',
15+
'X-Frappe-CSRF-Token': csrf_token
16+
},
17+
timeout: 60000
18+
})
19+
.then(res => {
20+
expect(res.status).eq(200);
21+
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
22+
cy.get('@input')
23+
.clear({ force: true })
24+
.type('Test Org Chart{enter}', { force: true })
25+
.blur({ force: true });
26+
27+
cy.get('body').click();
28+
});
2929
});
3030
});
3131

0 commit comments

Comments
 (0)