Fixed spacing issues [MQ-34]

This commit is contained in:
Michelle Shull
2018-09-10 11:40:36 -04:00
parent 9105c8734d
commit 2eb68ed561

View File

@@ -9,21 +9,16 @@ require_once __DIR__ . '/../DataFactories/Newsletter.php';
class ConfirmNotificationAutosaveCest {
function confirmNotificationAutosave(\AcceptanceTester $I) {
$I->wantTo('Confirm Post Notification Autosave');
$newsletter_title = 'Notification Autosave Test';
// step 1 - Prepare post notification data
$newsletterFactory = new Newsletter();
$newsletter = $newsletterFactory->withSubject($newsletter_title)
->withType('notification')
->withPostNoticationOptions()
->create();
// step 2 - Go to editor
$I->login();
$I->amEditingNewsletter($newsletter->id);
$I->amEditingNewsletter($newsletter->id);
// step 3 - Add subject, wait for Autosave
$title_element = '[data-automation-id=\'newsletter_title\']';
$I->waitForElement($title_element);