Adds new id to create standard/notification newsletters
This commit is contained in:
@@ -58,7 +58,7 @@ define(
|
|||||||
description: MailPoet.I18n.t('regularNewsletterTypeDescription'),
|
description: MailPoet.I18n.t('regularNewsletterTypeDescription'),
|
||||||
action: function () {
|
action: function () {
|
||||||
return (
|
return (
|
||||||
<a className="button button-primary" onClick={this.createNewsletter.bind(null, 'standard')}>
|
<a className="button button-primary" data-automation-id="create_standard" onClick={this.createNewsletter.bind(null, 'standard')}>
|
||||||
{MailPoet.I18n.t('create')}
|
{MailPoet.I18n.t('create')}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
@@ -84,7 +84,7 @@ define(
|
|||||||
description: MailPoet.I18n.t('postNotificationNewsletterTypeDescription'),
|
description: MailPoet.I18n.t('postNotificationNewsletterTypeDescription'),
|
||||||
action: function () {
|
action: function () {
|
||||||
return (
|
return (
|
||||||
<a className="button button-primary" onClick={this.setupNewsletter.bind(null, 'notification')}>
|
<a className="button button-primary" data-automation-id="create_notification" onClick={this.setupNewsletter.bind(null, 'notification')}>
|
||||||
{MailPoet.I18n.t('setUp')}
|
{MailPoet.I18n.t('setUp')}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
@@ -18,7 +18,7 @@ class ManageSubscriptionLinkCest {
|
|||||||
|
|
||||||
// step 1 - select type
|
// step 1 - select type
|
||||||
$I->seeInCurrentUrl('#/new');
|
$I->seeInCurrentUrl('#/new');
|
||||||
$I->click('Create');
|
$I->click('[data-automation-id=\'create_standard\']');
|
||||||
|
|
||||||
// step 2 - select template
|
// step 2 - select template
|
||||||
$first_template_element = '[data-automation-id=\'select_template_1\']';
|
$first_template_element = '[data-automation-id=\'select_template_1\']';
|
||||||
|
Reference in New Issue
Block a user