@@ -37,7 +37,7 @@ describe('SummaryList', () => {
3737 it ( 'matches snapshot' , ( ) => {
3838 const { container } = render ( < SummaryList . Row > Row</ SummaryList . Row > ) ;
3939
40- expect ( container . textContent ) . toBe ( 'Row' ) ;
40+ expect ( container ) . toHaveTextContent ( 'Row' ) ;
4141 expect ( container ) . toMatchSnapshot ( ) ;
4242 } ) ;
4343
@@ -53,7 +53,7 @@ describe('SummaryList', () => {
5353 it ( 'matches snapshot' , ( ) => {
5454 const { container } = render ( < SummaryList . Key > Key</ SummaryList . Key > ) ;
5555
56- expect ( container . textContent ) . toBe ( 'Key' ) ;
56+ expect ( container ) . toHaveTextContent ( 'Key' ) ;
5757 expect ( container ) . toMatchSnapshot ( ) ;
5858 } ) ;
5959 } ) ;
@@ -62,7 +62,7 @@ describe('SummaryList', () => {
6262 it ( 'matches snapshot' , ( ) => {
6363 const { container } = render ( < SummaryList . Value > Value</ SummaryList . Value > ) ;
6464
65- expect ( container . textContent ) . toBe ( 'Value' ) ;
65+ expect ( container ) . toHaveTextContent ( 'Value' ) ;
6666 expect ( container ) . toMatchSnapshot ( ) ;
6767 } ) ;
6868 } ) ;
@@ -71,7 +71,7 @@ describe('SummaryList', () => {
7171 it ( 'matches snapshot' , ( ) => {
7272 const { container } = render ( < SummaryList . Actions > Actions</ SummaryList . Actions > ) ;
7373
74- expect ( container . textContent ) . toBe ( 'Actions' ) ;
74+ expect ( container ) . toHaveTextContent ( 'Actions' ) ;
7575 expect ( container ) . toMatchSnapshot ( ) ;
7676 } ) ;
7777 } ) ;
0 commit comments