@@ -65,8 +65,11 @@ vi.mock("../../utils/isFieldDisabled", () => ({
6565} ) ) ;
6666
6767vi . mock ( "../FieldRevert/FieldRevertComponent" , async ( importOriginal ) => {
68- const actual = await importOriginal < typeof import ( "../FieldRevert/FieldRevertComponent" ) > ( ) ;
69-
68+ const actual =
69+ await importOriginal <
70+ typeof import ( "../FieldRevert/FieldRevertComponent" )
71+ > ( ) ;
72+
7073 return {
7174 ...actual ,
7275 getFieldVariantStatus : vi . fn ( ) . mockResolvedValue ( {
@@ -129,7 +132,7 @@ describe("FieldToolbarComponent", () => {
129132 vi . clearAllMocks ( ) ;
130133 } ) ;
131134
132- test . skip ( "renders toolbar buttons correctly" , async ( ) => {
135+ test ( "renders toolbar buttons correctly" , async ( ) => {
133136 const { getByTestId } = await asyncRender (
134137 < FieldToolbarComponent
135138 eventDetails = { mockEventDetails }
@@ -153,7 +156,7 @@ describe("FieldToolbarComponent", () => {
153156 expect ( deleteButton ) . toBeInTheDocument ( ) ;
154157 } ) ;
155158
156- test . skip ( "calls handleMoveInstance with 'previous' when move left button is clicked" , async ( ) => {
159+ test ( "calls handleMoveInstance with 'previous' when move left button is clicked" , async ( ) => {
157160 const { getByTestId } = await asyncRender (
158161 < FieldToolbarComponent
159162 eventDetails = { mockEventDetails }
@@ -173,7 +176,7 @@ describe("FieldToolbarComponent", () => {
173176 ) ;
174177 } ) ;
175178
176- test . skip ( "calls handleMoveInstance with 'next' when move right button is clicked" , async ( ) => {
179+ test ( "calls handleMoveInstance with 'next' when move right button is clicked" , async ( ) => {
177180 const { getByTestId } = await asyncRender (
178181 < FieldToolbarComponent
179182 eventDetails = { mockEventDetails }
@@ -193,7 +196,7 @@ describe("FieldToolbarComponent", () => {
193196 ) ;
194197 } ) ;
195198
196- test . skip ( "calls handleDeleteInstance when delete button is clicked" , async ( ) => {
199+ test ( "calls handleDeleteInstance when delete button is clicked" , async ( ) => {
197200 const { getByTestId } = await asyncRender (
198201 < FieldToolbarComponent
199202 eventDetails = { mockEventDetails }
@@ -211,7 +214,7 @@ describe("FieldToolbarComponent", () => {
211214 mockMultipleFieldMetadata
212215 ) ;
213216 } ) ;
214- test . skip ( "display variant icon instead of dropdown" , async ( ) => {
217+ test ( "display variant icon instead of dropdown" , async ( ) => {
215218 // Create a fresh copy with variant set to avoid mutation issues
216219 const variantEventDetails = {
217220 ...mockEventDetails ,
@@ -250,7 +253,7 @@ describe("FieldToolbarComponent", () => {
250253 ) ;
251254 } ) ;
252255
253- test . skip ( "'replace button' is hidden for parent wrapper of multiple file field" , async ( ) => {
256+ test ( "'replace button' is hidden for parent wrapper of multiple file field" , async ( ) => {
254257 const parentWrapperMetadata : CslpData = {
255258 ...mockMultipleFieldMetadata ,
256259 fieldPathWithIndex : "files" ,
@@ -277,7 +280,7 @@ describe("FieldToolbarComponent", () => {
277280 expect ( replaceButton ) . not . toBeInTheDocument ( ) ;
278281 } ) ;
279282
280- test . skip ( "'replace button' is visible for individual field in multiple file field" , async ( ) => {
283+ test ( "'replace button' is visible for individual field in multiple file field" , async ( ) => {
281284 const individualFieldMetadata : CslpData = {
282285 ...mockMultipleFieldMetadata ,
283286 fieldPathWithIndex : "files" ,
@@ -305,7 +308,7 @@ describe("FieldToolbarComponent", () => {
305308 } ) ;
306309 } ) ;
307310
308- test . skip ( "passes disabled state correctly to child components when field is disabled" , async ( ) => {
311+ test ( "passes disabled state correctly to child components when field is disabled" , async ( ) => {
309312 // Mock isFieldDisabled to return disabled state
310313 vi . mocked ( isFieldDisabled ) . mockReturnValue ( {
311314 isDisabled : true ,
0 commit comments