Changeset 56134
- Timestamp:
- 07/04/2023 11:30:36 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/e2e/specs/cache-control-headers-directives.test.js
r55968 r56134 21 21 22 22 const response = await page.goto( createURL( '/hello-world/' ) ); 23 const cacheControl= response.headers();23 const responseHeaders = response.headers(); 24 24 25 expect( cacheControl[ 'cache-control' ] ).not.toContain( 'no-store');26 expect( cacheControl[ 'cache-control' ] ).not.toContain( 'private');25 expect( responseHeaders ).toEqual( expect.not.objectContaining( { "cache-control": "no-store" } ) ); 26 expect( responseHeaders ).toEqual( expect.not.objectContaining( { "cache-control": "private" } ) ); 27 27 } ); 28 28 … … 31 31 32 32 const response = await page.goto( createURL( '/wp-admin' ) ); 33 const cacheControl= response.headers();33 const responseHeaders = response.headers(); 34 34 35 expect( cacheControl[ 'cache-control' ] ).toContain( 'no-store' );36 expect( cacheControl[ 'cache-control' ] ).toContain( 'private' );35 expect( responseHeaders[ 'cache-control' ] ).toContain( 'no-store' ); 36 expect( responseHeaders[ 'cache-control' ] ).toContain( 'private' ); 37 37 } ); 38 38
Note: See TracChangeset
for help on using the changeset viewer.