@@ -734,7 +734,7 @@ describe('Kanban Integration', () => {
734734 data : initialData
735735 } as any ) ;
736736
737- vi . spyOn ( mocks . MockDataSource . prototype , 'getObjectSchema' ) . mockResolvedValue ( {
737+ const schemaSpy = vi . spyOn ( mocks . MockDataSource . prototype , 'getObjectSchema' ) . mockResolvedValue ( {
738738 name : 'project_task' ,
739739 fields : {
740740 title : { type : 'text' , label : 'Title' } ,
@@ -778,6 +778,10 @@ describe('Kanban Integration', () => {
778778 // For now, we verify the component can handle the initial load
779779 // and that data source was called correctly
780780 expect ( findSpy ) . toHaveBeenCalledWith ( 'project_task' , expect . any ( Object ) ) ;
781+
782+ // Restore spies to avoid affecting subsequent tests
783+ findSpy . mockRestore ( ) ;
784+ schemaSpy . mockRestore ( ) ;
781785 } ) ;
782786} ) ;
783787
@@ -838,7 +842,7 @@ describe('Dashboard Integration', () => {
838842
839843 await waitFor ( ( ) => {
840844 expect ( screen . getByText ( / C R M O v e r v i e w / i) ) . toBeInTheDocument ( ) ;
841- } ) ;
845+ } , { timeout : 10000 } ) ;
842846
843847 expect ( screen . getByText ( / R e v e n u e T r e n d s / i) ) . toBeInTheDocument ( ) ;
844848 } ) ;
@@ -848,7 +852,7 @@ describe('Dashboard Integration', () => {
848852
849853 await waitFor ( ( ) => {
850854 expect ( screen . getByText ( / C R M H e l p G u i d e / i) ) . toBeInTheDocument ( ) ;
851- } ) ;
855+ } , { timeout : 10000 } ) ;
852856
853857 expect ( screen . getByText ( / K e y b o a r d S h o r t c u t s / i) ) . toBeInTheDocument ( ) ;
854858 } ) ;
0 commit comments