1
- import { expectLinkWithEnabledBackwardsNavigation , expectH1 , expectH4 , expectTitledSection , expectUrl } from "../testUtils" ;
1
+ import { expectLinkWithEnabledBackwardsNavigation , expectH1 , expectH4 , expectUrl } from "../testUtils" ;
2
2
import { mockRubrics } from "../../mocks/data" ;
3
- import { editButton , expectActionMessage , expectAdaBreadCrumbs , expectErrorMessage , expectPhyBreadCrumbs , expectSidebarToggle , previewButton , renderQuizPage , setTestButton , sideBarTestCases , testSectionsHeader } from "../helpers/quiz" ;
3
+ import { editButton , expectAdaBreadCrumbs , expectErrorMessage , expectPhyBreadCrumbs , expectRubric , expectSidebarToggle , previewButton , renderQuizPage , setTestButton , sideBarTestCases , testSectionsHeader } from "../helpers/quiz" ;
4
4
import { isPhy , siteSpecific } from "../../app/services" ;
5
- import { screen } from "@testing-library/react" ;
5
+ import { screen } from "@testing-library/react" ;
6
6
7
7
describe ( "QuizView" , ( ) => {
8
8
const quizId = Object . keys ( mockRubrics ) [ 0 ] ;
@@ -24,9 +24,9 @@ describe("QuizView", () => {
24
24
expectH1 ( rubric . title ) ;
25
25
} ) ;
26
26
27
- it ( 'shows message about this page' , async ( ) => {
27
+ it ( 'does not show message about this page' , async ( ) => {
28
28
await studentViewsQuiz ( ) ;
29
- expectActionMessage ( 'You are viewing the rubric for this test.' ) ;
29
+ expect ( screen . queryByTestId ( "quiz-action" ) ) . not . toBeInTheDocument ( ) ;
30
30
} ) ;
31
31
32
32
it ( 'does not show Set Test button' , async ( ) => {
@@ -36,7 +36,7 @@ describe("QuizView", () => {
36
36
37
37
it ( 'shows quiz rubric' , async ( ) => {
38
38
await studentViewsQuiz ( ) ;
39
- expectTitledSection ( "Instructions" , rubric . rubric ?. children ?. [ 0 ] . value ) ;
39
+ expectRubric ( rubric . rubric ?. children ?. [ 0 ] . value ) ;
40
40
} ) ;
41
41
42
42
it ( "does not show Test sections" , async ( ) => {
0 commit comments