From 0d684c2c8104bfeaf70690d711e9931a4ac349a6 Mon Sep 17 00:00:00 2001 From: Abhishek-17H Date: Wed, 15 Jan 2025 14:37:17 +0530 Subject: [PATCH] Fix duplicate id issue in FileWidget and CheckboxWidget tests --- .../manage/Widgets/CheckboxWidget.test.jsx | 10 ++-- .../manage/Widgets/FileWidget.test.jsx | 12 ++--- .../CheckboxWidget.test.jsx.snap | 20 ++++---- .../__snapshots__/FileWidget.test.jsx.snap | 46 +++++++++---------- 4 files changed, 46 insertions(+), 42 deletions(-) diff --git a/packages/volto/src/components/manage/Widgets/CheckboxWidget.test.jsx b/packages/volto/src/components/manage/Widgets/CheckboxWidget.test.jsx index bb752a9813..28a722977d 100644 --- a/packages/volto/src/components/manage/Widgets/CheckboxWidget.test.jsx +++ b/packages/volto/src/components/manage/Widgets/CheckboxWidget.test.jsx @@ -18,7 +18,11 @@ describe('CheckboxWidget', () => { const { asFragment } = render( - {}} /> + {}} + /> , ); @@ -37,8 +41,8 @@ describe('CheckboxWidget', () => { {}} /> , diff --git a/packages/volto/src/components/manage/Widgets/FileWidget.test.jsx b/packages/volto/src/components/manage/Widgets/FileWidget.test.jsx index f003c1b8c7..2797d7ea36 100644 --- a/packages/volto/src/components/manage/Widgets/FileWidget.test.jsx +++ b/packages/volto/src/components/manage/Widgets/FileWidget.test.jsx @@ -21,8 +21,8 @@ describe('FileWidget', () => { const { container } = render( {}} /> @@ -43,8 +43,8 @@ describe('FileWidget', () => { const { container } = render( {}} value={{ @@ -71,8 +71,8 @@ describe('FileWidget', () => { const { container } = render( {}} value={{ diff --git a/packages/volto/src/components/manage/Widgets/__snapshots__/CheckboxWidget.test.jsx.snap b/packages/volto/src/components/manage/Widgets/__snapshots__/CheckboxWidget.test.jsx.snap index a2c0132a86..ab1f1b8be6 100644 --- a/packages/volto/src/components/manage/Widgets/__snapshots__/CheckboxWidget.test.jsx.snap +++ b/packages/volto/src/components/manage/Widgets/__snapshots__/CheckboxWidget.test.jsx.snap @@ -3,7 +3,7 @@ exports[`CheckboxWidget renders a checkbox widget component 1`] = `
@@ -46,7 +46,7 @@ exports[`CheckboxWidget renders a checkbox widget component 1`] = ` exports[`CheckboxWidget renders a checkbox widget component checked 1`] = `
diff --git a/packages/volto/src/components/manage/Widgets/__snapshots__/FileWidget.test.jsx.snap b/packages/volto/src/components/manage/Widgets/__snapshots__/FileWidget.test.jsx.snap index d57063bc63..4cd703dcbf 100644 --- a/packages/volto/src/components/manage/Widgets/__snapshots__/FileWidget.test.jsx.snap +++ b/packages/volto/src/components/manage/Widgets/__snapshots__/FileWidget.test.jsx.snap @@ -3,7 +3,7 @@ exports[`FileWidget renders a file widget component with value 1`] = `
@@ -34,20 +34,20 @@ exports[`FileWidget renders a file widget component with value 1`] = ` >
@@ -118,20 +118,20 @@ exports[`FileWidget renders a file widget component with value in raw data 1`] = >
@@ -210,15 +210,15 @@ exports[`FileWidget renders an empty file widget component 1`] = `