Fix acceptance tests
[MAILPOET-2677]
This commit is contained in:
committed by
Veljko V
parent
3194d93a07
commit
d1968dfe50
@@ -5,6 +5,7 @@ import { onChange, t } from 'common/functions';
|
||||
type Props = {
|
||||
id?: string
|
||||
value: string
|
||||
automationId?: string
|
||||
linkAutomationId?: string
|
||||
setValue: (x: string) => any
|
||||
preview: 'manage' | 'unsubscribe' | 'confirm'
|
||||
@@ -17,7 +18,12 @@ export default (props: Props) => {
|
||||
: pages[0];
|
||||
return (
|
||||
<>
|
||||
<select id={props.id} value={props.value} onChange={onChange(props.setValue)}>
|
||||
<select
|
||||
id={props.id}
|
||||
data-automation-id={props.automationId}
|
||||
value={props.value}
|
||||
onChange={onChange(props.setValue)}
|
||||
>
|
||||
{pages.map((page) => (
|
||||
<option key={page.id} value={page.id}>
|
||||
{`${page.title}`}
|
||||
|
@@ -24,7 +24,15 @@ export default () => {
|
||||
};
|
||||
return (
|
||||
<div>
|
||||
<button type="button" className="button button-primary" disabled={isSaving || hasError} onClick={onClick}>{MailPoet.I18n.t('saveSettings')}</button>
|
||||
<button
|
||||
type="button"
|
||||
data-automation-id="settings-submit-button"
|
||||
className="button button-primary"
|
||||
disabled={isSaving || hasError}
|
||||
onClick={onClick}
|
||||
>
|
||||
{MailPoet.I18n.t('saveSettings')}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user