Fix acceptance tests

[MAILPOET-2780]
This commit is contained in:
Ján Mikláš
2020-10-12 14:58:01 +02:00
committed by Veljko V
parent a5cd64abab
commit 2aa5790c1e
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ const SubscribersHeading = ({ history, location }) => (
}} }}
> >
{plusIcon} {plusIcon}
<span>{MailPoet.I18n.t('new')}</span> <span data-automation-id="add-new-subscribers-button">{MailPoet.I18n.t('new')}</span>
</Link> </Link>
<a <a
className="mailpoet-button not-small-screen" className="mailpoet-button not-small-screen"

View File

@@ -28,6 +28,6 @@ class SaveNotificationAsDraftCest {
$i->click($saveAsDraftButton); $i->click($saveAsDraftButton);
$i->waitForElement('[data-automation-id="newsletters_listing_tabs"]'); $i->waitForElement('[data-automation-id="newsletters_listing_tabs"]');
$i->waitForText('Draft Test Post Notification'); $i->waitForText('Draft Test Post Notification');
$i->waitForText('Not Active'); $i->dontSeeCheckboxIsChecked('.mailpoet-form-toggle input[type="checkbox"]');
} }
} }

View File

@@ -65,7 +65,7 @@ class SubscriberManagementCest {
$i->wantTo('Add a user to global subscribers list'); $i->wantTo('Add a user to global subscribers list');
$i->login(); $i->login();
$i->amOnMailPoetPage ('Subscribers'); $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' => 'email'], 'newglobaluser99@fakemail.fake');
$i->fillField(['name' => 'first_name'], 'New'); $i->fillField(['name' => 'first_name'], 'New');
$i->fillField(['name' => 'last_name'], 'GlobalUser'); $i->fillField(['name' => 'last_name'], 'GlobalUser');