diff --git a/tests/acceptance/ConfirmNotificationAutosaveCest.php b/tests/acceptance/ConfirmNotificationAutosaveCest.php new file mode 100644 index 0000000000..a27e16176e --- /dev/null +++ b/tests/acceptance/ConfirmNotificationAutosaveCest.php @@ -0,0 +1,30 @@ +wantTo('Confirm Post Notification Autosave'); + $newsletter_title = 'Notification Autosave Test'; + // step 1 - Prepare post notification data + $newsletter = new Newsletter(); + $newsletter = $newsletter->withSubject($newsletter_title) + ->withType('notification') + ->withPostNoticationOptions() + ->create(); + // step 2 - Go to editor + $I->login(); + $I->amEditingNewsletter($newsletter->id); + // step 3 - Add subject, wait for Autosave + $title_element = '[data-automation-id=\'newsletter_title\']'; + $I->waitForElement($title_element); + $I->seeInCurrentUrl('mailpoet-newsletter-editor'); + $I->fillField($title_element, $newsletter_title); + $I->wait(10); + $I->see('Autosaved'); + } +} \ No newline at end of file