@@ -34,7 +34,7 @@ test('Renders with inherited element props spread to the component', () => {
3434 expect ( screen . getByText ( 'Test' ) ) . toHaveAccessibleName ( 'Label' ) ;
3535} ) ;
3636
37- test ( `Renders with class ${ styles . accordion } ` , ( ) => {
37+ test ( `Renders with class name ${ styles . accordion } ` , ( ) => {
3838 render ( < Accordion > Test</ Accordion > ) ;
3939
4040 expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( styles . accordion ) ;
@@ -63,7 +63,7 @@ test('Renders Accordion as a "div" when asDefinitionList is false', () => {
6363test ( 'Provides a ContentContainer of "dd" in a context by default' , ( ) => {
6464 render (
6565 < Accordion >
66- < AccordionContext . Consumer > { ( { ContentContainer } ) => String ( ContentContainer ) } </ AccordionContext . Consumer >
66+ < AccordionContext . Consumer > { ( { ContentContainer } ) => ContentContainer } </ AccordionContext . Consumer >
6767 </ Accordion >
6868 ) ;
6969
@@ -73,7 +73,7 @@ test('Provides a ContentContainer of "dd" in a context by default', () => {
7373test ( 'Provides a ContentContainer of "div" in a context when asDefinitionList is false' , ( ) => {
7474 render (
7575 < Accordion asDefinitionList = { false } >
76- < AccordionContext . Consumer > { ( { ContentContainer } ) => String ( ContentContainer ) } </ AccordionContext . Consumer >
76+ < AccordionContext . Consumer > { ( { ContentContainer } ) => ContentContainer } </ AccordionContext . Consumer >
7777 </ Accordion >
7878 ) ;
7979
@@ -83,7 +83,7 @@ test('Provides a ContentContainer of "div" in a context when asDefinitionList is
8383test ( 'Provides a ToggleContainer of "dt" in a context by default' , ( ) => {
8484 render (
8585 < Accordion >
86- < AccordionContext . Consumer > { ( { ToggleContainer } ) => String ( ToggleContainer ) } </ AccordionContext . Consumer >
86+ < AccordionContext . Consumer > { ( { ToggleContainer } ) => ToggleContainer } </ AccordionContext . Consumer >
8787 </ Accordion >
8888 ) ;
8989
@@ -93,7 +93,7 @@ test('Provides a ToggleContainer of "dt" in a context by default', () => {
9393test ( 'Provides a ToggleContainer of "h3" in a context when asDefinitionList is false' , ( ) => {
9494 render (
9595 < Accordion asDefinitionList = { false } >
96- < AccordionContext . Consumer > { ( { ToggleContainer } ) => String ( ToggleContainer ) } </ AccordionContext . Consumer >
96+ < AccordionContext . Consumer > { ( { ToggleContainer } ) => ToggleContainer } </ AccordionContext . Consumer >
9797 </ Accordion >
9898 ) ;
9999
@@ -103,59 +103,59 @@ test('Provides a ToggleContainer of "h3" in a context when asDefinitionList is f
103103test ( 'Provides a ToggleContainer of "h2" in a context when asDefinitionList is false and headingLevel is "h2"' , ( ) => {
104104 render (
105105 < Accordion asDefinitionList = { false } headingLevel = "h2" >
106- < AccordionContext . Consumer > { ( { ToggleContainer } ) => String ( ToggleContainer ) } </ AccordionContext . Consumer >
106+ < AccordionContext . Consumer > { ( { ToggleContainer } ) => ToggleContainer } </ AccordionContext . Consumer >
107107 </ Accordion >
108108 ) ;
109109
110110 expect ( screen . getByText ( 'h2' ) ) . toBeVisible ( ) ;
111111} ) ;
112112
113- test ( ` Renders without class ${ styles . modifiers . bordered } by default` , ( ) => {
113+ test ( ' Renders without pf-m- bordered by default' , ( ) => {
114114 render ( < Accordion > Test</ Accordion > ) ;
115115
116- expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( styles . modifiers . bordered ) ;
116+ expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( 'pf-m- bordered' ) ;
117117} ) ;
118118
119- test ( ` Renders with class ${ styles . modifiers . bordered } when isBordered=true` , ( ) => {
119+ test ( ' Renders with pf-m- bordered when isBordered=true' , ( ) => {
120120 render ( < Accordion isBordered > Test</ Accordion > ) ;
121121
122- expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( styles . modifiers . bordered ) ;
122+ expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-m- bordered' ) ;
123123} ) ;
124124
125- test ( ` Renders without class ${ styles . modifiers . noPlain } by default` , ( ) => {
125+ test ( ' Renders without class pf-m-no-plain by default' , ( ) => {
126126 render ( < Accordion > Test</ Accordion > ) ;
127127
128- expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( styles . modifiers . noPlain ) ;
128+ expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( 'pf-m-no-plain' ) ;
129129} ) ;
130130
131- test ( ` Renders with class ${ styles . modifiers . noPlain } when isNoPlainOnGlass` , ( ) => {
131+ test ( ' Renders with class pf-m-no-plain when isNoPlainOnGlass' , ( ) => {
132132 render ( < Accordion isNoPlainOnGlass > Test</ Accordion > ) ;
133133
134- expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( styles . modifiers . noPlain ) ;
134+ expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-m-no-plain' ) ;
135135} ) ;
136136
137- test ( ` Renders without class ${ styles . modifiers . plain } by default` , ( ) => {
137+ test ( ' Renders without class pf-m- plain by default' , ( ) => {
138138 render ( < Accordion > Test</ Accordion > ) ;
139139
140- expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( styles . modifiers . plain ) ;
140+ expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( 'pf-m- plain' ) ;
141141} ) ;
142142
143- test ( ` Renders with class ${ styles . modifiers . plain } when isPlain` , ( ) => {
143+ test ( ' Renders with class pf-m- plain when isPlain' , ( ) => {
144144 render ( < Accordion isPlain > Test</ Accordion > ) ;
145145
146- expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( styles . modifiers . plain ) ;
146+ expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-m- plain' ) ;
147147} ) ;
148148
149- test ( ` Renders without class ${ styles . modifiers . displayLg } by default` , ( ) => {
149+ test ( ' Renders without pf-m-display-lg by default' , ( ) => {
150150 render ( < Accordion > Test</ Accordion > ) ;
151151
152- expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( styles . modifiers . displayLg ) ;
152+ expect ( screen . getByText ( 'Test' ) ) . not . toHaveClass ( 'pf-m-display-lg' ) ;
153153} ) ;
154154
155- test ( ` Renders with class ${ styles . modifiers . displayLg } when displaySize="lg"` , ( ) => {
155+ test ( ' Renders with pf-m-display-lg when displaySize="lg"' , ( ) => {
156156 render ( < Accordion displaySize = "lg" > Test</ Accordion > ) ;
157157
158- expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( styles . modifiers . displayLg ) ;
158+ expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-m-display-lg' ) ;
159159} ) ;
160160
161161test ( `Renders without class ${ styles . modifiers . toggleStart } by default` , ( ) => {
0 commit comments