@capillarytech/creatives-library 7.17.140 → 7.17.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v2Components/TemplatePreview/index.js +3 -3
- package/v2Containers/Email/index.js +3 -5
- package/v2Containers/Whatsapp/index.js +82 -101
- package/v2Containers/Whatsapp/index.scss +6 -8
- package/v2Containers/Whatsapp/messages.js +3 -11
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +146 -302
- package/v2Containers/Whatsapp/tests/index.test.js +1 -4
- package/v2Containers/Whatsapp/utils.js +5 -0
- package/v2Containers/mockdata.js +5 -0
|
@@ -217,11 +217,8 @@ describe('Creatives Whatsapp test1/>', () => {
|
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
it('test addVariable in create mode', () => {
|
|
220
|
-
|
|
221
|
-
|
|
222
220
|
renderHelper({});
|
|
223
|
-
renderedComponent.
|
|
224
|
-
renderedComponent.find('[data-testid="suffix-button"]').at(1).props().onClick();
|
|
221
|
+
renderedComponent.find('CapHeader').at(1).props().suffix.props.onClick();
|
|
225
222
|
expect(renderedComponent).toMatchSnapshot();
|
|
226
223
|
});
|
|
227
224
|
|
|
@@ -198,6 +198,11 @@ export const getWhatsappAutoFill = (template) => {
|
|
|
198
198
|
type="label21"
|
|
199
199
|
className='whatsapp-autofill-btn'
|
|
200
200
|
>
|
|
201
|
+
<CapIcon
|
|
202
|
+
type={'launch'}
|
|
203
|
+
size="xs"
|
|
204
|
+
className='margin-r-4'
|
|
205
|
+
/>
|
|
201
206
|
<FormattedMessage {...globalMessages.autofill} />
|
|
202
207
|
</CapLabel>);
|
|
203
208
|
}
|
package/v2Containers/mockdata.js
CHANGED
|
@@ -2469,6 +2469,11 @@ export default {
|
|
|
2469
2469
|
className="whatsapp-autofill-btn"
|
|
2470
2470
|
type="label21"
|
|
2471
2471
|
>
|
|
2472
|
+
<CapIcon
|
|
2473
|
+
className="margin-r-4"
|
|
2474
|
+
size="xs"
|
|
2475
|
+
type="launch"
|
|
2476
|
+
/>
|
|
2472
2477
|
<FormattedMessage
|
|
2473
2478
|
defaultMessage="Autofill"
|
|
2474
2479
|
id="creatives.componentsV2.autofill"
|