cypress-wp-utils icon indicating copy to clipboard operation
cypress-wp-utils copied to clipboard

Fix issues on WordPress 6.7 and 6.8

Open dkotter opened this issue 11 months ago • 0 comments

Description of the Change

After merging in #135, noticed that some E2E tests were failing on develop. In investigating, found a few issues that this PR fixes:

  • In WordPress 6.8, the markup of the Start Page modal has changed, so code updates were needed in our createPost command to ensure that is closed properly
  • Also in WordPress 6.8, there's a new template editing mode that is the default when creating pages. This breaks the insertion of content so we now switch that mode off when a page is created using the createPost command
  • There were a few tests failing since WordPress 6.7 due to the sticky toggle being moved
  • We weren't properly running tests on 6.7 so the matrix we run tests on has been updated. In addition, properly marking the trunk version as trunk, instead of hardcoding that to a version number, since the actual version number for trunk will change anytime a new release comes out

How to test the Change

Ensure E2E tests are passing here

Changelog Entry

Fix - Ensure the createPost command works properly when used to create pages on WordPress 6.8 Developer - Update the matrix of WordPress versions we run our E2E tests on Developer - Ensure all E2E tests pass on WordPress 6.7

Credits

Props @dkotter

Checklist:

dkotter avatar Mar 19 '25 19:03 dkotter