@@ -32,14 +32,9 @@ test(`Renders with ${styles.modifiers.noPadding} when hasNoPadding is true`, ()
3232 expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( styles . modifiers . noPadding ) ;
3333} ) ;
3434
35- test ( 'Renders with pf-m-gradient-border when hasGradientBorder is true' , ( ) => {
36- render ( < CompassPanel hasGradientBorder > Test</ CompassPanel > ) ;
37- expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-m-gradient-border' ) ;
38- } ) ;
39-
40- test ( 'Renders with pf-m-thinking when isThinking is true' , ( ) => {
35+ test ( 'Renders with pf-v6-m-thinking when isThinking is true' , ( ) => {
4136 render ( < CompassPanel isThinking > Test</ CompassPanel > ) ;
42- expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-m-thinking' ) ;
37+ expect ( screen . getByText ( 'Test' ) ) . toHaveClass ( 'pf-v6- m-thinking' ) ;
4338} ) ;
4439
4540test ( `Renders with ${ styles . modifiers . fullHeight } when isFullHeight is true` , ( ) => {
@@ -54,16 +49,15 @@ test(`Renders with ${styles.modifiers.scrollable} when isScrollable is true`, ()
5449
5550test ( 'Renders with multiple modifier classes when multiple props are true' , ( ) => {
5651 render (
57- < CompassPanel isPill hasNoBorder hasNoPadding hasGradientBorder isThinking isFullHeight isScrollable >
52+ < CompassPanel isPill hasNoBorder hasNoPadding isThinking isFullHeight isScrollable >
5853 Test
5954 </ CompassPanel >
6055 ) ;
6156 const panelElement = screen . getByText ( 'Test' ) ;
6257 expect ( panelElement ) . toHaveClass ( styles . modifiers . pill ) ;
6358 expect ( panelElement ) . toHaveClass ( styles . modifiers . noBorder ) ;
6459 expect ( panelElement ) . toHaveClass ( styles . modifiers . noPadding ) ;
65- expect ( panelElement ) . toHaveClass ( 'pf-m-gradient-border' ) ;
66- expect ( panelElement ) . toHaveClass ( 'pf-m-thinking' ) ;
60+ expect ( panelElement ) . toHaveClass ( 'pf-v6-m-thinking' ) ;
6761 expect ( panelElement ) . toHaveClass ( styles . modifiers . fullHeight ) ;
6862 expect ( panelElement ) . toHaveClass ( styles . modifiers . scrollable ) ;
6963} ) ;
@@ -75,7 +69,7 @@ test('Renders with additional props spread to the component', () => {
7569
7670test ( 'Matches the snapshot with all modifiers' , ( ) => {
7771 const { asFragment } = render (
78- < CompassPanel isPill hasNoBorder hasNoPadding hasGradientBorder isThinking isFullHeight isScrollable >
72+ < CompassPanel isPill hasNoBorder hasNoPadding isThinking isFullHeight isScrollable >
7973 < div > Panel with all modifiers</ div >
8074 </ CompassPanel >
8175 ) ;
0 commit comments