Add acceptance test
This commit is contained in:
committed by
M. Shull
parent
d444a02feb
commit
dfc7ffd4b6
@ -192,7 +192,7 @@ class NewsletterTypes extends React.Component {
|
||||
</h3>
|
||||
<p>{type.description}</p>
|
||||
{type.disabled && (
|
||||
<p>
|
||||
<p data-automation-id={`${type.slug}_premium_feature_notice`}>
|
||||
<span style={{ color: 'red' }}>{MailPoet.I18n.t('premiumFeature')}</span>
|
||||
{' '}
|
||||
<a href="?page=mailpoet-premium">{MailPoet.I18n.t('learnMore')}</a>
|
||||
|
@ -78,4 +78,15 @@ class NewsletterCreationCest {
|
||||
$I->click('Send');
|
||||
}
|
||||
|
||||
function seePremiumFeatureNotice(\AcceptanceTester $I) {
|
||||
$I->wantTo('See the premium feature notice in the WooCommerce type');
|
||||
|
||||
$I->login();
|
||||
$I->amOnMailpoetPage('Emails');
|
||||
$I->click('[data-automation-id="new_email"]');
|
||||
|
||||
$premium_notice = '[data-automation-id="woocommerce_premium_feature_notice"]';
|
||||
$I->waitForElement($premium_notice);
|
||||
$I->see("This is a Premium feature.", $premium_notice);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user