@@ -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