File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,17 +25,17 @@ describe('browser (ssr: false)', () => {
2525 page . goto ( url ( '/' ) )
2626 await page . waitForEvent ( 'domcontentloaded' )
2727 const body = await page . innerHTML ( 'body' )
28- expect ( body ) . toContain ( '/_ipx/2000px-Aconcagua2016.jpg?s=300_20 ' )
28+ expect ( body ) . toContain ( '/_ipx/s_300x200/ 2000px-Aconcagua2016.jpg' )
2929
30- const positiveRequest = requests . find ( request => request . match ( '/_ipx/2000px-Aconcagua2016.jpg' ) )
30+ const positiveRequest = requests . find ( request => request . match ( '/_ipx/s_300x200/ 2000px-Aconcagua2016.jpg' ) )
3131 expect ( positiveRequest ) . toBeTruthy ( )
3232 const negativeRequest = requests . find ( request => request . match ( '1280px-K2_2006b.jpg' ) )
3333 expect ( negativeRequest ) . toBeFalsy ( )
3434 } )
3535
3636 test ( 'change image location' , async ( ) => {
3737 await page . click ( '#button' )
38- const positiveRequest = requests . find ( request => request . match ( '/_ipx/1280px-K2_2006b.jpg' ) )
38+ const positiveRequest = requests . find ( request => request . match ( '/_ipx/s_300x200/ 1280px-K2_2006b.jpg' ) )
3939 expect ( positiveRequest ) . toBeTruthy ( )
4040 } )
4141} )
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ describe('browser (ssr: true)', () => {
2121 } )
2222 page . goto ( url ( '/' ) )
2323 const body = await page . innerHTML ( 'body' )
24- expect ( body ) . toContain ( '/_ipx/2000px-Aconcagua2016.jpg?s=300_20 ' )
24+ expect ( body ) . toContain ( '/_ipx/s_300x200/ 2000px-Aconcagua2016.jpg' )
2525
26- const positiveRequest = requests . find ( request => request . match ( '/_ipx/2000px-Aconcagua2016.jpg' ) )
26+ const positiveRequest = requests . find ( request => request . match ( '/_ipx/s_300x200/ 2000px-Aconcagua2016.jpg' ) )
2727 expect ( positiveRequest ) . toBeTruthy ( )
2828 const negativeRequest = requests . find ( request => request . match ( '1280px-K2_2006b.jpg' ) )
2929 expect ( negativeRequest ) . toBeFalsy ( )
3030 } )
3131
3232 test ( 'change image location' , async ( ) => {
3333 await page . click ( '#button' )
34- const positiveRequest = requests . find ( request => request . match ( '/_ipx/1280px-K2_2006b.jpg' ) )
34+ const positiveRequest = requests . find ( request => request . match ( '/_ipx/s_300x200/ 1280px-K2_2006b.jpg' ) )
3535 expect ( positiveRequest ) . toBeTruthy ( )
3636 } )
3737} )
You can’t perform that action at this time.
0 commit comments