@@ -8,6 +8,7 @@ for (const fileName of ['parse.js', 'parse.min.js']) {
88 beforeEach ( async ( ) => {
99 browser = await puppeteer . launch ( {
1010 args : [ '--disable-web-security' , '--incognito' , '--no-sandbox' ] ,
11+ devtools : false ,
1112 } ) ;
1213 const context = await browser . createBrowserContext ( ) ;
1314 page = await context . newPage ( ) ;
@@ -42,7 +43,7 @@ for (const fileName of ['parse.js', 'parse.min.js']) {
4243 expect ( obj . id ) . toEqual ( response ) ;
4344 } ) ;
4445
45- it ( 'can cancel save file with uri ' , async ( ) => {
46+ it ( 'can cancel save file' , async ( ) => {
4647 let requestsCount = 0 ;
4748 let abortedCount = 0 ;
4849 const promise = resolvingPromise ( ) ;
@@ -63,11 +64,11 @@ for (const fileName of ['parse.js', 'parse.min.js']) {
6364 }
6465 } ) ;
6566 await page . evaluate ( async ( ) => {
66- const parseLogo =
67- 'https://raw.githubusercontent.com/parse-community/parse-server/master/.github/parse-server-logo.png' ;
68- const file = new Parse . File ( 'parse-server-logo' , { uri : parseLogo } ) ;
69- file . save ( ) . then ( ( ) => { } ) ;
70-
67+ const SIZE_10_MB = 10 * 1024 * 1024 ;
68+ const file = new Parse . File ( 'test_file.txt' , new Uint8Array ( SIZE_10_MB ) ) ;
69+ file . save ( ) . then ( ( ) => {
70+ fail ( 'should not save' ) ;
71+ } ) ;
7172 return new Promise ( resolve => {
7273 const intervalId = setInterval ( ( ) => {
7374 if ( file . _requestTask && typeof file . _requestTask . abort === 'function' ) {
0 commit comments