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'); } }