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');