Add Acceptance test for receive post notification

[MQ-69]
This commit is contained in:
Pavel Dohnal
2018-11-07 16:20:39 +01:00
parent 4b94392362
commit 9364a422b3
4 changed files with 113 additions and 0 deletions

View File

@@ -288,6 +288,7 @@ const NewsletterListNotification = createReactClass({ // eslint-disable-line rea
}
return (
<Link
data-automation-id={`history-${newsletter.id}`}
to={`/notification/history/${newsletter.id}`}
>{ MailPoet.I18n.t('viewHistory') }</Link>
);

View File

@@ -38,6 +38,7 @@ class ListingTabs extends React.Component {
<Link
key={`tab-${tab.label}`}
className={tabClasses}
data-automation-id={`tab-${tab.label}`}
to={tab.link}
onClick={() => MailPoet.trackEvent(`Tab Emails > ${tab.name} clicked`,
{ 'MailPoet Free version': window.mailpoet_version }