@@ -5,32 +5,64 @@ import { render, screen } from "@testing-library/react";
55import React from "react" ;
66
77describe ( "MoreInformation component " , ( ) => {
8- it ( "should display whatItIsFor expander block" , async ( ) => {
9- const vaccineType = VaccineType . RSV ;
10- render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
8+ describe ( "moreInformationHeadersFromContentApi false" , ( ) => {
9+ it ( "should display whatItIsFor expander block" , async ( ) => {
10+ const vaccineType = VaccineType . RSV ;
11+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
1112
12- expectExpanderBlockToBePresent ( "What the vaccine is for" , "What Section styled component" ) ;
13- } ) ;
13+ expectExpanderBlockToBePresent ( "What the vaccine is for" , "What Section styled component" ) ;
14+ } ) ;
1415
15- it ( "should display whoVaccineIsFor expander block" , async ( ) => {
16- const vaccineType = VaccineType . RSV ;
17- render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
16+ it ( "should display whoVaccineIsFor expander block" , async ( ) => {
17+ const vaccineType = VaccineType . RSV ;
18+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
1819
19- expectExpanderBlockToBePresent ( "Who should have the vaccine" , "Who Section styled component" ) ;
20- } ) ;
20+ expectExpanderBlockToBePresent ( "Who should have the vaccine" , "Who Section styled component" ) ;
21+ } ) ;
2122
22- it ( "should display howToGet expander block" , async ( ) => {
23- const vaccineType = VaccineType . TD_IPV_3_IN_1 ;
24- render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
23+ it ( "should display howToGet expander block" , async ( ) => {
24+ const vaccineType = VaccineType . TD_IPV_3_IN_1 ;
25+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
26+
27+ expectExpanderBlockToBePresent ( "How to get the vaccine" , "How Section styled component" ) ;
28+ } ) ;
29+
30+ it ( "should display vaccineSideEffects expander block" , async ( ) => {
31+ const vaccineType = VaccineType . RSV ;
32+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
2533
26- expectExpanderBlockToBePresent ( "How to get the vaccine" , "How Section styled component" ) ;
34+ expectExpanderBlockToBePresent ( "Side effects of the vaccine" , "Side effects section styled component" ) ;
35+ } ) ;
2736 } ) ;
2837
29- it ( "should display vaccineSideEffects expander block" , async ( ) => {
30- const vaccineType = VaccineType . RSV ;
31- render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
38+ describe ( "moreInformationHeadersFromContentApi true" , ( ) => {
39+ it ( "should display whatItIsFor expander block" , async ( ) => {
40+ const vaccineType = VaccineType . FLU_IN_PREGNANCY ;
41+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
3242
33- expectExpanderBlockToBePresent ( "Side effects of the vaccine" , "Side effects section styled component" ) ;
43+ expectExpanderBlockToBePresent ( "what-heading" , "What Section styled component" ) ;
44+ } ) ;
45+
46+ it ( "should display whoVaccineIsFor expander block" , async ( ) => {
47+ const vaccineType = VaccineType . FLU_IN_PREGNANCY ;
48+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
49+
50+ expectExpanderBlockToBePresent ( "who-heading" , "Who Section styled component" ) ;
51+ } ) ;
52+
53+ it ( "should display howToGet expander block" , async ( ) => {
54+ const vaccineType = VaccineType . FLU_IN_PREGNANCY ;
55+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
56+
57+ expectExpanderBlockToBePresent ( "how-heading" , "How Section styled component" ) ;
58+ } ) ;
59+
60+ it ( "should display vaccineSideEffects expander block" , async ( ) => {
61+ const vaccineType = VaccineType . FLU_IN_PREGNANCY ;
62+ render ( < MoreInformation styledVaccineContent = { mockStyledContent } vaccineType = { vaccineType } /> ) ;
63+
64+ expectExpanderBlockToBePresent ( "side-effects-heading" , "Side effects section styled component" ) ;
65+ } ) ;
3466 } ) ;
3567
3668 it ( "should not include 'how to get' section for RSV_PREGNANCY " , async ( ) => {
0 commit comments