Skip to content

Commit

Permalink
Acceptance Test: Attempt to close welcome modals.
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Apr 12, 2024
1 parent ec31be3 commit 3be607e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/faustwp/tests/acceptance/CustomPostTypeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public function i_can_view_the_custom_post_type_preview_link(AcceptanceTester $I

$I->loginAsAdmin();
$I->amEditingPostWithId($cpt_id);
$I->click('div.components-modal__header > button');
$I->click('button.editor-preview-dropdown__toggle');
$I->wait(4); // Wait for previewlinks.js to modify button href.
$I->seeLink(
'Preview in new tab',
"${front_end_url}/${cpt_name}/?preview=true",
"${front_end_url}/document/${cpt_name}/?preview=true",
);

$I->click('Preview in new tab');
$I->switchToNextTab();
$I->wait(14); // Wait for authentication
Expand Down
1 change: 1 addition & 0 deletions plugins/faustwp/tests/acceptance/PostPreviewCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function i_can_view_the_post_preview_link(AcceptanceTester $I)

$I->loginAsAdmin();
$I->amEditingPostWithId($post_id);
$I->click('div.components-modal__header > button');
$I->click('button.editor-preview-dropdown__toggle');
$I->wait(4); // Wait for previewlinks.js to modify button href.
$I->seeLink(
Expand Down

0 comments on commit 3be607e

Please sign in to comment.