@@ -102,36 +102,36 @@ describe('ColoredText', () => {
102102 test ( 'Render with title' , async ( ) => {
103103 testContentWithTitle < ColoredTextProps > ( {
104104 component : ColoredText ,
105- props : coloredTextData ,
105+ props : pick ( coloredTextData , 'title' ) ,
106106 } ) ;
107107 } ) ;
108108
109109 test ( 'Render with text' , async ( ) => {
110110 testContentWithText < ColoredTextProps > ( {
111111 component : ColoredText ,
112- props : coloredTextData ,
112+ props : pick ( coloredTextData , 'text' ) ,
113113 } ) ;
114114 } ) ;
115115
116116 test ( 'Render with additionalInfo' , async ( ) => {
117117 testContentWithAdditionalInfo < ColoredTextProps > ( {
118118 component : ColoredText ,
119- props : coloredTextData ,
119+ props : pick ( coloredTextData , 'additionalInfo' ) ,
120120 } ) ;
121121 } ) ;
122122
123123 test . each ( new Array < ContentSize > ( 's' , 'l' ) ) ( 'Render with given "%s" size' , ( size ) => {
124124 testContentWithSize < ColoredTextProps > ( {
125125 component : ColoredText ,
126- props : { ... coloredTextData , size} ,
126+ props : { qa : coloredTextData . qa , size} ,
127127 options : { qaId : contentQaAttributes . container } ,
128128 } ) ;
129129 } ) ;
130130
131131 test ( 'Render with centered' , async ( ) => {
132132 testContentWithCentered < ColoredTextProps > ( {
133133 component : ColoredText ,
134- props : coloredTextData ,
134+ props : { ... pick ( coloredTextData , 'centered' , 'qa' ) } ,
135135 options : { qaId : contentQaAttributes . container } ,
136136 } ) ;
137137 } ) ;
@@ -141,7 +141,7 @@ describe('ColoredText', () => {
141141 ( theme ) => {
142142 testContentWithTheme < ColoredTextProps > ( {
143143 component : ColoredText ,
144- props : { ... coloredTextData , theme} ,
144+ props : { qa : coloredTextData . qa , theme} ,
145145 options : { qaId : contentQaAttributes . container } ,
146146 } ) ;
147147 } ,
@@ -150,7 +150,7 @@ describe('ColoredText', () => {
150150 test ( 'Render with list' , async ( ) => {
151151 testContentWithList < ColoredTextProps > ( {
152152 component : ColoredText ,
153- props : coloredTextData ,
153+ props : pick ( coloredTextData , 'list' , 'qa' ) ,
154154 options : { qaId : contentQaAttributes . list } ,
155155 } ) ;
156156 } ) ;
0 commit comments