Skip to content

Commit 41dd0c5

Browse files
committed
fix: sider
1 parent eb65ce6 commit 41dd0c5

2 files changed

Lines changed: 20 additions & 21 deletions

File tree

cypress/integration/test_organizational_chart_desktop.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ context('Organizational Chart', () => {
1414
'X-Frappe-CSRF-Token': csrf_token
1515
},
1616
timeout: 60000
17-
})
18-
.then(res => {
17+
}).then(res => {
1918
expect(res.status).eq(200);
2019
cy.get('.frappe-control[data-fieldname=company] input').focus().as('input');
2120
cy.get('@input')

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)