wantTo('Confirm Post Notification Autosave'); $newsletterTitle = 'Notification Autosave Test'; // step 1 - Prepare post notification data $newsletter = new Newsletter(); $newsletter = $newsletter->withSubject($newsletterTitle) ->withPostNotificationsType() ->create(); // step 2 - Go to editor $i->login(); $i->amEditingNewsletter($newsletter->id); // step 3 - Add subject, wait for Autosave $titleElement = '[data-automation-id="newsletter_title"]'; $i->waitForElement($titleElement); $i->fillField($titleElement, $newsletterTitle); $i->waitForText('Autosaved'); } }