Update SaveNotificationAsDraftCest.php
This commit is contained in:
@ -8,7 +8,6 @@ require_once __DIR__ . '/../DataFactories/Newsletter.php';
|
||||
|
||||
class SavePostNotificationEmailAsDraftCest {
|
||||
function saveNotificationAsDraft(\AcceptanceTester $I) {
|
||||
|
||||
// step 1 - Prepare post notification data
|
||||
$I->wantTo('Save post notification email as draft');
|
||||
$newsletter_title = 'Draft Test Post Notification';
|
||||
@ -17,12 +16,10 @@ class SavePostNotificationEmailAsDraftCest {
|
||||
->withType('notification')
|
||||
->withPostNoticationOptions()
|
||||
->create();
|
||||
|
||||
// step 2 - Go to editor
|
||||
$I->login();
|
||||
$I->amEditingNewsletter($newsletter->id);
|
||||
$I->click('Next');
|
||||
|
||||
//Save Notification As Draft
|
||||
$send_form_element = '[data-automation-id="newsletter_send_form"]';
|
||||
$I->waitForElement($send_form_element);
|
||||
|
Reference in New Issue
Block a user