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

28 lines
839 B
PHP

<?php
namespace MailPoet\Test\Acceptance;
use MailPoet\Test\DataFactories\Newsletter;
class ConfirmNotificationAutosaveCest {
public function confirmNotificationAutosave(\AcceptanceTester $i) {
$i->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');
}
}