@@ -74,7 +74,7 @@ describe('ReportItem', () => {
7474 expect ( screen . getByText ( 'General' ) ) . toBeInTheDocument ( ) ;
7575 expect ( screen . getByText ( / U p l o a d D a t e • 0 1 \/ 2 7 \/ 2 0 2 5 / ) ) . toBeInTheDocument ( ) ;
7676 expect ( screen . getByTestId ( 'mocked-icon-user' ) ) . toBeInTheDocument ( ) ;
77-
77+
7878 // Check for unread class
7979 const reportItem = screen . getByText ( 'Blood Test' ) . closest ( '.report-item' ) ;
8080 expect ( reportItem ) . toHaveClass ( 'report-item--unread' ) ;
@@ -86,7 +86,7 @@ describe('ReportItem', () => {
8686
8787 // ASSERT
8888 expect ( screen . getByText ( 'MRI Scan' ) ) . toBeInTheDocument ( ) ;
89-
89+
9090 // Check that it doesn't have unread class
9191 const reportItem = screen . getByText ( 'MRI Scan' ) . closest ( '.report-item' ) ;
9292 expect ( reportItem ) . not . toHaveClass ( 'report-item--unread' ) ;
@@ -103,26 +103,4 @@ describe('ReportItem', () => {
103103 // ASSERT
104104 expect ( onClickMock ) . toHaveBeenCalledTimes ( 1 ) ;
105105 } ) ;
106-
107- it ( 'should render different icons for different categories' , ( ) => {
108- // Test with different categories
109- const categories = [
110- { category : ReportCategory . GENERAL , icon : 'user' } ,
111- { category : ReportCategory . NEUROLOGICAL , icon : 'circleInfo' } ,
112- { category : ReportCategory . HEART , icon : 'circleInfo' }
113- ] ;
114-
115- for ( const { category, icon } of categories ) {
116- const report = { ...mockReport , category } ;
117-
118- // ARRANGE
119- render ( < ReportItem report = { report } /> ) ;
120-
121- // ASSERT
122- expect ( screen . getByTestId ( `mocked-icon-${ icon } ` ) ) . toBeInTheDocument ( ) ;
123-
124- // Clean up after each iteration
125- cleanup ( ) ;
126- }
127- } ) ;
128- } ) ;
106+ } ) ;
0 commit comments