Add acceptance test for form placement

[MAILPOET-2639]
This commit is contained in:
Pavel Dohnal
2020-01-29 12:37:33 +01:00
committed by Jack Kitterhing
parent c6aa1311ad
commit bdfd488ae4
2 changed files with 64 additions and 6 deletions

View File

@@ -77,17 +77,24 @@ const FormPlacementPanel = ({ onToggle, isOpened }) => {
return (
<Panel>
<PanelBody title={MailPoet.I18n.t('formPlacement')} opened={isOpened} onToggle={onToggle}>
<PanelBody
title={MailPoet.I18n.t('formPlacement')}
opened={isOpened}
onToggle={onToggle}
className="form-sidebar-form-placement-panel"
>
<ToggleControl
label={MailPoet.I18n.t('placeFormBellowAllPages')}
checked={placeFormBellowAllPages}
onChange={setPlaceFormBellowAllPages}
/>
<ToggleControl
label={MailPoet.I18n.t('placeFormBellowAllPosts')}
checked={placeFormBellowAllPosts}
onChange={setPlaceFormBellowAllPosts}
/>
<div data-automation-id="place-form-bellow-all-posts-toggle">
<ToggleControl
label={MailPoet.I18n.t('placeFormBellowAllPosts')}
checked={placeFormBellowAllPosts}
onChange={setPlaceFormBellowAllPosts}
/>
</div>
<p>{addFormWidgetHint}</p>
<p>{addFormPhpIframeHint}</p>
{getCopyTextArea()}