@capillarytech/creatives-library 7.12.16 → 7.12.18

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.
@@ -223,4 +223,21 @@ describe('Creatives rcs test/>', () => {
223
223
  renderedComponent.find('CapButton.rcs-done-btn').simulate('click');
224
224
  expect(renderedComponent).toMatchSnapshot();
225
225
  });
226
+
227
+ it('rcs edit with dlt fallback and save in library mode', () => {
228
+ editTemplate.mockImplementation((obj, callback) => {
229
+ callback();
230
+ });
231
+ //dlt fallback
232
+ renderHelper({
233
+ params,
234
+ rcsData: rcsData3,
235
+ isEditFlow: true,
236
+ isDltEnabled: true,
237
+ isFullMode:false,
238
+ });
239
+ expect(renderedComponent).toMatchSnapshot();
240
+ renderedComponent.find('CapButton.rcs-done-btn').simulate('click');
241
+ expect(renderedComponent).toMatchSnapshot();
242
+ });
226
243
  });
@@ -82,6 +82,7 @@ export const Whatsapp = (props) => {
82
82
  injectedTags,
83
83
  loadingTags,
84
84
  getFormData,
85
+ selectedOfferDetails,
85
86
  } = props || {};
86
87
  const { formatMessage } = intl;
87
88
  const { TextArea } = CapInput;
@@ -903,6 +904,7 @@ export const Whatsapp = (props) => {
903
904
  tags={tags || []}
904
905
  onContextChange={handleOnTagsContextChange}
905
906
  injectedTags={injectedTags || {}}
907
+ selectedOfferDetails={selectedOfferDetails}
906
908
  />
907
909
  )
908
910
  }