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 { class ConfirmNotificationAutosaveCest {
function confirmNotificationAutosave(\AcceptanceTester $I) { function confirmNotificationAutosave(\AcceptanceTester $I) {
$I->wantTo('Confirm Post Notification Autosave'); $I->wantTo('Confirm Post Notification Autosave');
$newsletter_title = 'Notification Autosave Test'; $newsletter_title = 'Notification Autosave Test';
// step 1 - Prepare post notification data // step 1 - Prepare post notification data
$newsletterFactory = new Newsletter(); $newsletterFactory = new Newsletter();
$newsletter = $newsletterFactory->withSubject($newsletter_title) $newsletter = $newsletterFactory->withSubject($newsletter_title)
->withType('notification') ->withType('notification')
->withPostNoticationOptions() ->withPostNoticationOptions()
->create(); ->create();
// step 2 - Go to editor // step 2 - Go to editor
$I->login(); $I->login();
$I->amEditingNewsletter($newsletter->id); $I->amEditingNewsletter($newsletter->id);
// step 3 - Add subject, wait for Autosave // step 3 - Add subject, wait for Autosave
$title_element = '[data-automation-id=\'newsletter_title\']'; $title_element = '[data-automation-id=\'newsletter_title\']';
$I->waitForElement($title_element); $I->waitForElement($title_element);