Files
piratepoet/tests/acceptance/ConfirmNotificationAutosaveCest.php
Jan Jakeš b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00

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