@capillarytech/creatives-library 9.0.45 → 9.0.46

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.
@@ -1491,6 +1491,14 @@ describe('WhatsApp edit Done button whitespace validation', () => {
1491
1491
  expect(getDoneButton().props().disabled).toBe(true);
1492
1492
  });
1493
1493
 
1494
+ it('propagates templateId from edit content into TestAndPreviewSlidebox formData', () => {
1495
+ mountEditFlow(mockData.editData1);
1496
+ const slidebox = renderedComponent.find('TestAndPreviewSlidebox').first();
1497
+ expect(slidebox.exists()).toBe(true);
1498
+ expect(slidebox.prop('formData').templateId).toBe('HT9bb4d61eea1699d2dbcaecd1cb558345');
1499
+ expect(slidebox.prop('content').templateId).toBe('HT9bb4d61eea1699d2dbcaecd1cb558345');
1500
+ });
1501
+
1494
1502
  it('keeps Done disabled for whitespace-only carousel variable', () => {
1495
1503
  const editData = {
1496
1504
  templateDetails: {