Skip to content

Commit

Permalink
Experiment: Remove querySelector check
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanand01 committed Jun 27, 2024
1 parent b2d6b94 commit 080a14d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/e2e-test-utils/src/publishPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ async function publishPost() {
await page.waitForFunction(
() =>
wp.data.select('core/editor').getEditedPostAttribute('status') ===
'publish' &&
(document.querySelector(
'.editor-post-publish-button__button[aria-disabled="true"]'
).textContent === 'Save' ||
document.querySelector(
'.editor-post-publish-button__button[aria-disabled="true"]'
).textContent === 'Update')
'publish'
);

// The first time around the selector might return undefined.
Expand Down

0 comments on commit 080a14d

Please sign in to comment.