diff --git a/assets/js/src/newsletters/types.jsx b/assets/js/src/newsletters/types.jsx index 54b1e28ef6..d21138837f 100644 --- a/assets/js/src/newsletters/types.jsx +++ b/assets/js/src/newsletters/types.jsx @@ -192,7 +192,7 @@ class NewsletterTypes extends React.Component {
{type.description}
{type.disabled && ( -+
{MailPoet.I18n.t('premiumFeature')} {' '} {MailPoet.I18n.t('learnMore')} diff --git a/tests/acceptance/NewsletterCreationCest.php b/tests/acceptance/NewsletterCreationCest.php index f25ee69fd2..0655d09e02 100644 --- a/tests/acceptance/NewsletterCreationCest.php +++ b/tests/acceptance/NewsletterCreationCest.php @@ -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); + } }