@@ -91,7 +91,7 @@ describe('ObjectForm with MSW Integration', () => {
9191 // Wait for form to load
9292 await waitFor ( ( ) => {
9393 expect ( screen . getByLabelText ( / ^ N a m e / i) ) . toBeInTheDocument ( ) ;
94- } , { timeout : 5000 } ) ;
94+ } , { timeout : 10000 } ) ;
9595
9696 expect ( screen . getByLabelText ( / E m a i l / i) ) . toBeInTheDocument ( ) ;
9797 expect ( screen . getByLabelText ( / ^ P h o n e / i) ) . toBeInTheDocument ( ) ;
@@ -122,7 +122,7 @@ describe('ObjectForm with MSW Integration', () => {
122122 // Wait for form to load
123123 await waitFor ( ( ) => {
124124 expect ( screen . getByLabelText ( / ^ N a m e / i) ) . toBeInTheDocument ( ) ;
125- } , { timeout : 5000 } ) ;
125+ } , { timeout : 10000 } ) ;
126126
127127 // Fill in the form
128128 await user . type ( screen . getByLabelText ( / ^ N a m e / i) , 'Test User' ) ;
@@ -137,7 +137,7 @@ describe('ObjectForm with MSW Integration', () => {
137137 // Wait for success callback
138138 await waitFor ( ( ) => {
139139 expect ( onSuccess ) . toHaveBeenCalled ( ) ;
140- } , { timeout : 5000 } ) ;
140+ } , { timeout : 10000 } ) ;
141141
142142 const createdContact = onSuccess . mock . calls [ 0 ] [ 0 ] ;
143143 expect ( createdContact . name ) . toBe ( 'Test User' ) ;
@@ -165,7 +165,7 @@ describe('ObjectForm with MSW Integration', () => {
165165
166166 await waitFor ( ( ) => {
167167 expect ( screen . getByLabelText ( / ^ N a m e / i) ) . toBeInTheDocument ( ) ;
168- } , { timeout : 5000 } ) ;
168+ } , { timeout : 10000 } ) ;
169169
170170 // Try to submit without filling required fields
171171 const submitButton = screen . getByRole ( 'button' , { name : / c r e a t e / i } ) ;
@@ -196,7 +196,7 @@ describe('ObjectForm with MSW Integration', () => {
196196
197197 await waitFor ( ( ) => {
198198 expect ( screen . getByLabelText ( / ^ N a m e / i) ) . toBeInTheDocument ( ) ;
199- } , { timeout : 5000 } ) ;
199+ } , { timeout : 10000 } ) ;
200200
201201 // Fill required fields only
202202 await user . type ( screen . getByLabelText ( / ^ N a m e / i) , 'Default Test' ) ;
@@ -207,7 +207,7 @@ describe('ObjectForm with MSW Integration', () => {
207207
208208 await waitFor ( ( ) => {
209209 expect ( onSuccess ) . toHaveBeenCalled ( ) ;
210- } , { timeout : 5000 } ) ;
210+ } , { timeout : 10000 } ) ;
211211
212212 const createdContact = onSuccess . mock . calls [ 0 ] [ 0 ] ;
213213 // Check default values from schema
@@ -235,7 +235,7 @@ describe('ObjectForm with MSW Integration', () => {
235235 await waitFor ( ( ) => {
236236 const nameInput = screen . getByLabelText ( / ^ N a m e / i) as HTMLInputElement ;
237237 expect ( nameInput . value ) . toBe ( 'Alice Johnson' ) ;
238- } , { timeout : 5000 } ) ;
238+ } , { timeout : 10000 } ) ;
239239
240240 const emailInput = screen . getByLabelText ( / E m a i l / i) as HTMLInputElement ;
241241 expect ( emailInput . value ) . toBe ( 'alice@objectstack.com' ) ;
@@ -266,7 +266,7 @@ describe('ObjectForm with MSW Integration', () => {
266266 await waitFor ( ( ) => {
267267 const nameInput = screen . getByLabelText ( / ^ N a m e / i) as HTMLInputElement ;
268268 expect ( nameInput . value ) . toBe ( 'Alice Johnson' ) ;
269- } , { timeout : 5000 } ) ;
269+ } , { timeout : 10000 } ) ;
270270
271271 // Update the name
272272 const nameInput = screen . getByLabelText ( / ^ N a m e / i) ;
@@ -278,7 +278,7 @@ describe('ObjectForm with MSW Integration', () => {
278278
279279 await waitFor ( ( ) => {
280280 expect ( onSuccess ) . toHaveBeenCalled ( ) ;
281- } , { timeout : 5000 } ) ;
281+ } , { timeout : 10000 } ) ;
282282
283283 const updatedContact = onSuccess . mock . calls [ 0 ] [ 0 ] ;
284284 expect ( updatedContact . name ) . toBe ( 'Alice Johnson Updated' ) ;
0 commit comments