Skip to content

Commit

Permalink
Acceptance Tests: update preview button selectos for WP 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Apr 12, 2024
1 parent 05cc371 commit 8d97c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/faustwp/tests/acceptance/CustomPostTypeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function i_can_view_the_custom_post_type_preview_link(AcceptanceTester $I
$I->amEditingPostWithId($cpt_id);

$I->click('div.components-guide .components-modal__header button.components-button');
$I->click('button.block-editor-post-preview__button-toggle');
$I->click('button.editor-preview-dropdown__toggle');
$I->wait(4); // Wait for previewlinks.js to modify button href.
$I->seeLink(
'Preview in new tab',
Expand Down
2 changes: 1 addition & 1 deletion plugins/faustwp/tests/acceptance/PostPreviewCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function i_can_view_the_post_preview_link(AcceptanceTester $I)

$I->loginAsAdmin();
$I->amEditingPostWithId($post_id);
$I->click('button.block-editor-post-preview__button-toggle');
$I->click('button.editor-preview-dropdown__toggle');
$I->wait(4); // Wait for previewlinks.js to modify button href.
$I->seeLink(
'Preview in new tab',
Expand Down

0 comments on commit 8d97c66

Please sign in to comment.