@@ -9,22 +9,22 @@ jest.unmock('react');
9
9
jest . unmock ( '@edx/frontend-platform/i18n' ) ;
10
10
11
11
jest . mock ( './FinalGrade' , ( ) => ( ) => (
12
- < div data-testid = "final-grade" > Final Grade Component</ div >
12
+ < div > Final Grade Component</ div >
13
13
) ) ;
14
14
jest . mock ( './Content' , ( ) => ( ) => (
15
- < div data-testid = "grade-content" > Grade Content Component</ div >
15
+ < div > Grade Content Component</ div >
16
16
) ) ;
17
17
jest . mock ( 'components/ModalActions' , ( ) => ( ) => (
18
- < div data-testid = "modal-actions" > Modal Actions Component</ div >
18
+ < div > Modal Actions Component</ div >
19
19
) ) ;
20
20
21
21
describe ( '<GradeView />' , ( ) => {
22
22
it ( 'renders grade view with proper layout structure and responsive design' , ( ) => {
23
23
const { container } = render ( < GradeView /> ) ;
24
24
25
- expect ( screen . getByTestId ( 'final-grade ') ) . toBeInTheDocument ( ) ;
26
- expect ( screen . getByTestId ( 'grade-content ') ) . toBeInTheDocument ( ) ;
27
- expect ( screen . getByTestId ( 'modal-actions ') ) . toBeInTheDocument ( ) ;
25
+ expect ( screen . getByText ( 'Final Grade Component ') ) . toBeInTheDocument ( ) ;
26
+ expect ( screen . getByText ( 'Grade Content Component ') ) . toBeInTheDocument ( ) ;
27
+ expect ( screen . getByText ( 'Modal Actions Component ') ) . toBeInTheDocument ( ) ;
28
28
29
29
const gradeViewBody = container . querySelector ( '.grade-view-body' ) ;
30
30
expect ( gradeViewBody ) . toBeInTheDocument ( ) ;
0 commit comments