Skip to content

Commit 7acff50

Browse files
authored
Merge pull request #1057 from Kit/tests-fix-publish-classic-editor-page
Tests: Classic Editor: Fix Publish Button click
2 parents 9a3b71b + a649450 commit 7acff50

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/Support/Helper/WPClassicEditor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ public function publishClassicEditorPage($I)
257257
// Wait for the Publish button to change its state from disabled (WordPress disables it for a moment when auto-saving).
258258
$I->waitForElementVisible('input#publish:not(:disabled)');
259259

260+
// Some tests are flaky and fail if we click the Publish button too soon.
261+
$I->wait(1);
262+
260263
// Click the Publish button.
261264
$I->click('input#publish');
262265

0 commit comments

Comments
 (0)