Make WordPress Core

Changeset 56197


Ignore:
Timestamp:
07/11/2023 03:39:39 AM (14 months ago)
Author:
peterwilsoncc
Message:

Build/Test Tools: Prevent 404 errors in the E2E tests.

Modifies the cache control headers tests to prevent 404 errors for each of the tests.

Props costdev.
Fixes #58777.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/e2e/specs/cache-control-headers-directives.test.js

    r56134 r56197  
    22    visitAdminPage,
    33    createNewPost,
     4    publishPost,
    45    trashAllPosts,
    56    createURL,
     
    1415
    1516    it( 'No private directive present in cache control when user not logged in.', async () => {
    16         await createNewPost( {
    17             title: 'Hello World',
    18             post_status: 'publish',
    19         } );
     17        await createNewPost( { title: 'Hello World' } );
     18        await publishPost();
    2019        await logout();
    2120
     
    2827
    2928    it( 'Private directive header present in cache control when logged in.', async () => {
    30         await visitAdminPage( '/wp-admin' );
     29        await visitAdminPage( '/' );
    3130
    3231        const response = await page.goto( createURL( '/wp-admin' ) );
Note: See TracChangeset for help on using the changeset viewer.