Add data-automation-id to woocommerce events

This commit is contained in:
Amine Ben hammou
2019-01-10 12:57:56 +01:00
parent aec3524843
commit 7fb55a045b

View File

@@ -33,6 +33,7 @@ class AutomaticEmailEvent extends React.PureComponent {
className="button button-primary"
disabled={disabled}
onClick={!disabled ? _.partial(this.props.eventsConfigurator, event.slug) : null}
data-automation-id={event.slug}
>
{event.actionButtonTitle || MailPoet.I18n.t('setUp')}
</a>