@capillarytech/creatives-library 7.12.17 → 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
  });
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from "react-intl";
2
+ import { FormattedMessage } from 'react-intl';
3
3
 
4
4
  export default {
5
5
  whatsappTemplates: {
@@ -629,7 +629,6 @@ export default {
629
629
  ],
630
630
  cardSettings: {
631
631
  cardOrientation: 'VERTICAL',
632
- mediaAlignment: 'RIGHT',
633
632
  },
634
633
  cardType: 'STANDALONE',
635
634
  contentType: 'RICHCARD',
@@ -664,7 +663,6 @@ export default {
664
663
  contentType: 'RICHCARD',
665
664
  cardType: 'STANDALONE',
666
665
  cardSettings: {
667
- mediaAlignment: 'RIGHT',
668
666
  cardOrientation: 'VERTICAL',
669
667
  },
670
668
  cardContent: [
@@ -706,7 +704,6 @@ export default {
706
704
  contentType: 'RICHCARD',
707
705
  cardType: 'STANDALONE',
708
706
  cardSettings: {
709
- mediaAlignment: 'RIGHT',
710
707
  cardOrientation: 'VERTICAL',
711
708
  },
712
709
  cardContent: [
@@ -757,7 +754,6 @@ export default {
757
754
  ],
758
755
  cardSettings: {
759
756
  cardOrientation: 'VERTICAL',
760
- mediaAlignment: 'RIGHT',
761
757
  },
762
758
  cardType: 'STANDALONE',
763
759
  contentType: 'RICHCARD',
@@ -792,7 +788,6 @@ export default {
792
788
  contentType: 'RICHCARD',
793
789
  cardType: 'STANDALONE',
794
790
  cardSettings: {
795
- mediaAlignment: 'RIGHT',
796
791
  cardOrientation: 'VERTICAL',
797
792
  },
798
793
  cardContent: [
@@ -835,7 +830,6 @@ export default {
835
830
  contentType: 'RICHCARD',
836
831
  cardType: 'STANDALONE',
837
832
  cardSettings: {
838
- mediaAlignment: 'RIGHT',
839
833
  cardOrientation: 'VERTICAL',
840
834
  },
841
835
  cardContent: [
@@ -885,7 +879,6 @@ export default {
885
879
  ],
886
880
  cardSettings: {
887
881
  cardOrientation: 'VERTICAL',
888
- mediaAlignment: 'RIGHT',
889
882
  },
890
883
  cardType: 'STANDALONE',
891
884
  contentType: 'RICHCARD',
@@ -920,7 +913,6 @@ export default {
920
913
  contentType: 'RICHCARD',
921
914
  cardType: 'STANDALONE',
922
915
  cardSettings: {
923
- mediaAlignment: 'RIGHT',
924
916
  cardOrientation: 'VERTICAL',
925
917
  },
926
918
  cardContent: [
@@ -977,7 +969,6 @@ export default {
977
969
  },
978
970
  },
979
971
  cardSettings: {
980
- mediaAlignment: 'RIGHT',
981
972
  cardOrientation: 'VERTICAL',
982
973
  },
983
974
  cardType: 'STANDALONE',
@@ -1038,7 +1029,6 @@ export default {
1038
1029
  },
1039
1030
  },
1040
1031
  cardSettings: {
1041
- mediaAlignment: 'RIGHT',
1042
1032
  cardOrientation: 'VERTICAL',
1043
1033
  },
1044
1034
  cardType: 'STANDALONE',
@@ -1185,7 +1175,6 @@ export default {
1185
1175
  ],
1186
1176
  cardSettings: {
1187
1177
  cardOrientation: 'VERTICAL',
1188
- mediaAlignment: 'RIGHT',
1189
1178
  },
1190
1179
  cardType: 'STANDALONE',
1191
1180
  contentType: 'RICHCARD',
@@ -1214,4 +1203,4 @@ export default {
1214
1203
  whatsappTemplateCategory: '',
1215
1204
  whatsappTemplateName: '',
1216
1205
  },
1217
- };
1206
+ };