Skip to content

Commit

Permalink
WordPress 6.6 Compatibility (#13732)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanand01 authored Jun 27, 2024
1 parent 4cd3b17 commit 04aa809
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ jobs:
wp: 'latest'
snapshots: true
shard: '2/2'
- browser: 'chrome'
wp: '6.6-RC1'
snapshots: false
shard: '1/2'
experimental: true
- browser: 'chrome'
wp: '6.6-RC1'
snapshots: false
shard: '2/2'
experimental: true

steps:
- name: Harden Runner
Expand Down
7 changes: 5 additions & 2 deletions packages/e2e-test-utils/src/publishPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,12 @@ async function publishPost() {
() =>
wp.data.select('core/editor').getEditedPostAttribute('status') ===
'publish' &&
document.querySelector(
(document.querySelector(
'.editor-post-publish-button[aria-disabled="true"]'
).textContent === 'Update'
).textContent === 'Update' ||
document.querySelector(
'.editor-post-publish-button[aria-disabled="true"]'
).textContent === 'Save')
);

// The first time around the selector might return undefined.
Expand Down
3 changes: 3 additions & 0 deletions packages/e2e-tests/src/config/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ const ALLOWED_ERROR_MESSAGES = [
// Coming from <amp-story-player>
// See https://github.com/ampproject/amphtml/blob/413457c3598f8c6694ca4ee7b83a5d84f9b9f00c/src/amp-story-player/amp-story-player-impl.js#L562
"Unrecognized feature: 'web-share'",

// This is a known issue in core.
'You are importing createRoot from "react-dom" which is not supported.',
];

export function addAllowedErrorMessage(message) {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Web Stories ===

Contributors: google
Tested up to: 6.5
Tested up to: 6.6
Requires at least: 6.4
Stable tag: V.V.V
License: Apache-2.0
Expand Down

0 comments on commit 04aa809

Please sign in to comment.