From a6494509aa6a0ed3489e3d3182852620f4547de3 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 27 Mar 2026 16:00:31 +0800 Subject: [PATCH] Tests: Classic Editor: Fix Publish Button click --- tests/Support/Helper/WPClassicEditor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Support/Helper/WPClassicEditor.php b/tests/Support/Helper/WPClassicEditor.php index 7972470a3..9bec58456 100644 --- a/tests/Support/Helper/WPClassicEditor.php +++ b/tests/Support/Helper/WPClassicEditor.php @@ -257,6 +257,9 @@ public function publishClassicEditorPage($I) // Wait for the Publish button to change its state from disabled (WordPress disables it for a moment when auto-saving). $I->waitForElementVisible('input#publish:not(:disabled)'); + // Some tests are flaky and fail if we click the Publish button too soon. + $I->wait(1); + // Click the Publish button. $I->click('input#publish');