@@ -442,7 +442,7 @@ describe('Page.route', function() {
442442 method : 'POST' ,
443443 headers : { 'Content-Type' : 'application/json' } ,
444444 mode : 'cors' ,
445- body : JSON . stringify ( { 'number' : 1 } )
445+ body : JSON . stringify ( { 'number' : 1 } )
446446 } ) ;
447447 return response . json ( ) ;
448448 } ) ;
@@ -466,11 +466,11 @@ describe('Page.route', function() {
466466 method : 'POST' ,
467467 headers : { 'Content-Type' : 'application/json' } ,
468468 mode : 'cors' ,
469- body : JSON . stringify ( { 'number' : 1 } )
469+ body : JSON . stringify ( { 'number' : 1 } )
470470 } ) ;
471471 return response . json ( ) ;
472472 } ) ;
473- expect ( resp ) . toEqual ( [ 'POST' , 'electric' , 'gas' ] ) ;
473+ expect ( resp ) . toEqual ( [ 'POST' , 'electric' , 'gas' ] ) ;
474474 }
475475 // Then DELETE
476476 {
@@ -479,11 +479,11 @@ describe('Page.route', function() {
479479 method : 'DELETE' ,
480480 headers : { } ,
481481 mode : 'cors' ,
482- body : ''
482+ body : ''
483483 } ) ;
484484 return response . json ( ) ;
485485 } ) ;
486- expect ( resp ) . toEqual ( [ 'DELETE' , 'electric' , 'gas' ] ) ;
486+ expect ( resp ) . toEqual ( [ 'DELETE' , 'electric' , 'gas' ] ) ;
487487 }
488488 } ) ;
489489} ) ;
@@ -534,7 +534,7 @@ describe('Request.continue', function() {
534534 ] ) ;
535535 expect ( ( await serverRequest . postBody ) . toString ( 'utf8' ) ) . toBe ( 'doggo' ) ;
536536 } ) ;
537- it . fail ( FFOX ) ( 'should amend utf8 post data' , async ( { page, server} ) => {
537+ it ( 'should amend utf8 post data' , async ( { page, server} ) => {
538538 await page . goto ( server . EMPTY_PAGE ) ;
539539 await page . route ( '**/*' , route => {
540540 route . continue ( { postData : 'пушкин' } ) ;
@@ -543,9 +543,10 @@ describe('Request.continue', function() {
543543 server . waitForRequest ( '/sleep.zzz' ) ,
544544 page . evaluate ( ( ) => fetch ( '/sleep.zzz' , { method : 'POST' , body : 'birdy' } ) )
545545 ] ) ;
546+ expect ( serverRequest . method ) . toBe ( 'POST' ) ;
546547 expect ( ( await serverRequest . postBody ) . toString ( 'utf8' ) ) . toBe ( 'пушкин' ) ;
547548 } ) ;
548- it . fail ( FFOX ) ( 'should amend longer post data' , async ( { page, server} ) => {
549+ it ( 'should amend longer post data' , async ( { page, server} ) => {
549550 await page . goto ( server . EMPTY_PAGE ) ;
550551 await page . route ( '**/*' , route => {
551552 route . continue ( { postData : 'doggo-is-longer-than-birdy' } ) ;
@@ -554,9 +555,10 @@ describe('Request.continue', function() {
554555 server . waitForRequest ( '/sleep.zzz' ) ,
555556 page . evaluate ( ( ) => fetch ( '/sleep.zzz' , { method : 'POST' , body : 'birdy' } ) )
556557 ] ) ;
558+ expect ( serverRequest . method ) . toBe ( 'POST' ) ;
557559 expect ( ( await serverRequest . postBody ) . toString ( 'utf8' ) ) . toBe ( 'doggo-is-longer-than-birdy' ) ;
558560 } ) ;
559- it . fail ( FFOX ) ( 'should amend binary post data' , async ( { page, server} ) => {
561+ it ( 'should amend binary post data' , async ( { page, server} ) => {
560562 await page . goto ( server . EMPTY_PAGE ) ;
561563 const arr = Array . from ( Array ( 256 ) . keys ( ) ) ;
562564 await page . route ( '**/*' , route => {
@@ -566,6 +568,7 @@ describe('Request.continue', function() {
566568 server . waitForRequest ( '/sleep.zzz' ) ,
567569 page . evaluate ( ( ) => fetch ( '/sleep.zzz' , { method : 'POST' , body : 'birdy' } ) )
568570 ] ) ;
571+ expect ( serverRequest . method ) . toBe ( 'POST' ) ;
569572 const buffer = await serverRequest . postBody ;
570573 expect ( buffer . length ) . toBe ( arr . length ) ;
571574 for ( let i = 0 ; i < arr . length ; ++ i )
0 commit comments