Merge pull request #1573 from mailpoet/unsub-settings
Preview Default Unsub page from Settings [MQ-101]
This commit is contained in:
16
tests/acceptance/SettingsUnsubscribePageCest.php
Normal file
16
tests/acceptance/SettingsUnsubscribePageCest.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace MailPoet\Test\Acceptance;
|
||||||
|
|
||||||
|
class SettingsUnsubscribePageCest {
|
||||||
|
function previvewDefaultUnsubscribePage(\AcceptanceTester $I) {
|
||||||
|
$I->wantTo('Preview default MailPoet Unsubscribe page from MP Settings page');
|
||||||
|
$I->login();
|
||||||
|
$I->amOnMailPoetPage('Settings');
|
||||||
|
$I->click('[data-automation-id="unsubscribe_page_preview_link"]');
|
||||||
|
$I->switchToNextTab();
|
||||||
|
$I->waitForElement(['css'=>'.entry-title'], 20);
|
||||||
|
$I->seeInCurrentUrl('&action=unsubscribe');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@@ -296,6 +296,7 @@
|
|||||||
class="mailpoet_page_preview"
|
class="mailpoet_page_preview"
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
title="<%= __('Preview page') %>"
|
title="<%= __('Preview page') %>"
|
||||||
|
data-automation-id="unsubscribe_page_preview_link"
|
||||||
><%= __('Preview') %></a>
|
><%= __('Preview') %></a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
Reference in New Issue
Block a user