File tree Expand file tree Collapse file tree 4 files changed +197
-146
lines changed
plugins/security_solution/cypress/support Expand file tree Collapse file tree 4 files changed +197
-146
lines changed Original file line number Diff line number Diff line change 159159 "copy-to-clipboard" : " ^3.0.8" ,
160160 "copy-webpack-plugin" : " ^6.0.2" ,
161161 "cronstrue" : " ^1.51.0" ,
162- "cypress" : " 4.11 .0" ,
162+ "cypress" : " 5.0 .0" ,
163163 "cypress-multi-reporters" : " ^1.2.3" ,
164164 "d3" : " 3.5.17" ,
165165 "d3-scale" : " 1.0.7" ,
Original file line number Diff line number Diff line change @@ -45,15 +45,14 @@ Cypress.Commands.add(
4545 prevSubject : 'element' ,
4646 } ,
4747 ( input , fileName , fileType = 'text/plain' ) => {
48- cy . fixture ( fileName )
49- . then ( ( content ) => Cypress . Blob . base64StringToBlob ( content , fileType ) )
50- . then ( ( blob ) => {
51- const testFile = new File ( [ blob ] , fileName , { type : fileType } ) ;
52- const dataTransfer = new DataTransfer ( ) ;
48+ cy . fixture ( fileName ) . then ( ( content ) => {
49+ const blob = Cypress . Blob . base64StringToBlob ( content , fileType ) ;
50+ const testFile = new File ( [ blob ] , fileName , { type : fileType } ) ;
51+ const dataTransfer = new DataTransfer ( ) ;
5352
54- dataTransfer . items . add ( testFile ) ;
55- input [ 0 ] . files = dataTransfer . files ;
56- return input ;
57- } ) ;
53+ dataTransfer . items . add ( testFile ) ;
54+ input [ 0 ] . files = dataTransfer . files ;
55+ return input ;
56+ } ) ;
5857 }
5958) ;
Original file line number Diff line number Diff line change 2323import './commands' ;
2424
2525Cypress . Cookies . defaults ( {
26- whitelist : 'sid' ,
26+ preserve : 'sid' ,
2727} ) ;
2828
2929Cypress . on ( 'uncaught:exception' , ( err ) => {
You can’t perform that action at this time.
0 commit comments