Update acceptance test to new import flow

[MAILPOET-1626]
This commit is contained in:
Pavel Dohnal
2019-02-13 13:00:43 +01:00
committed by M. Shull
parent d531cd8678
commit afd97cf246
6 changed files with 24 additions and 10 deletions

View File

@@ -21,6 +21,7 @@ const PreviousNextStepButtons = ({ canGoNext, onPreviousAction, onNextAction })
  
<button
type="button"
data-automation-id="import-next-step"
className={nextStepClasses}
onClick={() => {
if (canGoNext) {

View File

@@ -64,6 +64,7 @@ class StepInputValidation extends Component {
onChange={e => this.setState({ subscribersAgreed: e.target.checked })}
name="subscribers_agreed"
id="subscribers_agreed"
data-automation-id="subscribers_agreed"
/>
{MailPoet.I18n.t('subscribersAgreed')}
</label>
@@ -85,6 +86,7 @@ class StepInputValidation extends Component {
onChange={e => this.setState({ sentOnceLastYear: e.target.checked })}
name="sent_once_last_year"
id="sent_once_last_year"
data-automation-id="sent_once_last_year"
/>
{MailPoet.I18n.t('sentOnceYear')}
</label>
@@ -101,6 +103,7 @@ class StepInputValidation extends Component {
onChange={e => this.setState({ understand: e.target.checked })}
name="understand"
id="understand"
data-automation-id="input_understand"
/>
{MailPoet.I18n.t('youUnderstand')}
</label>

View File

@@ -356,6 +356,7 @@ class SubscriberList extends React.Component {
<a
className="page-title-action"
href="?page=mailpoet-import"
data-automation-id="import-subscribers-button"
>
{MailPoet.I18n.t('import')}
</a>