withSubject($newsletterName)->create(); $i->wantTo('Preview a standard newsletter'); $i->login(); $i->amOnMailpoetPage('Emails'); $i->waitForText($newsletterName); $i->clickItemRowActionByItemName($newsletterName, 'Preview'); $i->switchToNextTab(); $i->waitForElement('.mailpoet_template'); } }