Files
piratepoet/tests/acceptance/PreviewPostNotificationNewsletterCest.php
Jan Jakeš 54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00

22 lines
758 B
PHP

<?php
namespace MailPoet\Test\Acceptance;
use MailPoet\Test\DataFactories\Newsletter;
class PreviewPostNotificationNewsletterCest {
public function previewStandardNewsletter(\AcceptanceTester $i) {
$newsletterName = 'Preview in Browser Post Notification';
$newsletter = new Newsletter();
$newsletter->withSubject($newsletterName)->withPostNotificationsType()->create();
$i->wantTo('Preview a post notification');
$i->login();
$i->amOnMailpoetPage('Emails');
$i->click('Post Notifications', '[data-automation-id="newsletters_listing_tabs"]');
$i->waitForText($newsletterName);
$i->clickItemRowActionByItemName($newsletterName, 'Preview');
$i->switchToNextTab();
$i->waitForElement('.mailpoet_template');
}
}