Skip to content

Tests: Classic Editor: Fix Publish Button click#1057

Merged
n7studios merged 1 commit intomainfrom
tests-fix-publish-classic-editor-page
Mar 27, 2026
Merged

Tests: Classic Editor: Fix Publish Button click#1057
n7studios merged 1 commit intomainfrom
tests-fix-publish-classic-editor-page

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

@n7studios n7studios commented Mar 27, 2026

Summary

#1027 (WordPress 7.0 RC2) and #1053 (greater test coverage using the Classic Editor with the Form setting) result in some tests being flaky and failing due to the Publish button in the Classic Editor not always being clicked.

Other methods have been tried, however still result in flaky, failing tests:

  • Using JS to click the button
  • Moving focus to a non-select2 field before clicking the publish button
  • Using Codeception's retryClick method

wait() isn't ideal, but results in tests that reliably, consistently work.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Mar 27, 2026
@github-actions
Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team March 27, 2026 10:29
@n7studios n7studios marked this pull request as ready for review March 27, 2026 10:29
Copy link
Copy Markdown

@ciccio-kit ciccio-kit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can live with that as long as it solves the flakiness reliably ✅

@n7studios n7studios merged commit 7acff50 into main Mar 27, 2026
159 of 166 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants