Fix acceptance tests
[MAILPOET-2780]
This commit is contained in:
@@ -18,7 +18,7 @@ const SubscribersHeading = ({ history, location }) => (
|
||||
}}
|
||||
>
|
||||
{plusIcon}
|
||||
<span>{MailPoet.I18n.t('new')}</span>
|
||||
<span data-automation-id="add-new-subscribers-button">{MailPoet.I18n.t('new')}</span>
|
||||
</Link>
|
||||
<a
|
||||
className="mailpoet-button not-small-screen"
|
||||
|
@@ -28,6 +28,6 @@ class SaveNotificationAsDraftCest {
|
||||
$i->click($saveAsDraftButton);
|
||||
$i->waitForElement('[data-automation-id="newsletters_listing_tabs"]');
|
||||
$i->waitForText('Draft Test Post Notification');
|
||||
$i->waitForText('Not Active');
|
||||
$i->dontSeeCheckboxIsChecked('.mailpoet-form-toggle input[type="checkbox"]');
|
||||
}
|
||||
}
|
||||
|
@@ -65,7 +65,7 @@ class SubscriberManagementCest {
|
||||
$i->wantTo('Add a user to global subscribers list');
|
||||
$i->login();
|
||||
$i->amOnMailPoetPage ('Subscribers');
|
||||
$i->click(['xpath' => '//*[@id="subscribers_container"]/div/h1/a[1]']);
|
||||
$i->click('[data-automation-id="add-new-subscribers-button"]');
|
||||
$i->fillField(['name' => 'email'], 'newglobaluser99@fakemail.fake');
|
||||
$i->fillField(['name' => 'first_name'], 'New');
|
||||
$i->fillField(['name' => 'last_name'], 'GlobalUser');
|
||||
|
Reference in New Issue
Block a user