Fixed spacing issues [MQ-34]
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user