@@ -33,14 +33,14 @@ describe('MetricRow', () => {
3333 description : 'Number of downloads per week' ,
3434 } ,
3535 } )
36- expect ( component . find ( '.i-carbon- information' ) . exists ( ) ) . toBe ( true )
36+ expect ( component . find ( '.i-carbon\\: information' ) . exists ( ) ) . toBe ( true )
3737 } )
3838
3939 it ( 'does not render description icon when not provided' , async ( ) => {
4040 const component = await mountSuspended ( MetricRow , {
4141 props : baseProps ,
4242 } )
43- expect ( component . find ( '.i-carbon- information' ) . exists ( ) ) . toBe ( false )
43+ expect ( component . find ( '.i-carbon\\: information' ) . exists ( ) ) . toBe ( false )
4444 } )
4545 } )
4646
@@ -79,7 +79,7 @@ describe('MetricRow', () => {
7979 loading : true ,
8080 } ,
8181 } )
82- expect ( component . find ( '.i-carbon- circle-dash' ) . exists ( ) ) . toBe ( true )
82+ expect ( component . find ( '.i-carbon\\: circle-dash' ) . exists ( ) ) . toBe ( true )
8383 } )
8484 } )
8585
@@ -155,20 +155,6 @@ describe('MetricRow', () => {
155155 expect ( component . findAll ( '.bg-fg\\/5' ) . length ) . toBe ( 0 )
156156 } )
157157
158- it ( 'auto-detects numeric values for bar display' , async ( ) => {
159- const component = await mountSuspended ( MetricRow , {
160- props : {
161- ...baseProps ,
162- values : [
163- { raw : 1000 , display : '1K' , status : 'neutral' } ,
164- { raw : 2000 , display : '2K' , status : 'neutral' } ,
165- ] ,
166- } ,
167- } )
168- // Should show bars by default for numeric values
169- expect ( component . findAll ( '.bg-fg\\/5' ) . length ) . toBeGreaterThan ( 0 )
170- } )
171-
172158 it ( 'does not show bar for non-numeric values' , async ( ) => {
173159 const component = await mountSuspended ( MetricRow , {
174160 props : {
@@ -195,7 +181,7 @@ describe('MetricRow', () => {
195181 diffs : [ null , { direction : 'increase' , display : '+100%' , favorable : true } ] ,
196182 } ,
197183 } )
198- expect ( component . find ( '.i-carbon- arrow-up' ) . exists ( ) ) . toBe ( true )
184+ expect ( component . find ( '.i-carbon\\: arrow-up' ) . exists ( ) ) . toBe ( true )
199185 expect ( component . text ( ) ) . toContain ( '+100%' )
200186 } )
201187
@@ -210,7 +196,7 @@ describe('MetricRow', () => {
210196 diffs : [ null , { direction : 'decrease' , display : '-50%' , favorable : false } ] ,
211197 } ,
212198 } )
213- expect ( component . find ( '.i-carbon- arrow-down' ) . exists ( ) ) . toBe ( true )
199+ expect ( component . find ( '.i-carbon\\: arrow-down' ) . exists ( ) ) . toBe ( true )
214200 } )
215201
216202 it ( 'applies favorable diff styling (green)' , async ( ) => {
@@ -254,8 +240,8 @@ describe('MetricRow', () => {
254240 diffs : [ null , { direction : 'same' , display : '0%' , favorable : undefined } ] ,
255241 } ,
256242 } )
257- expect ( component . find ( '.i-carbon- arrow-up' ) . exists ( ) ) . toBe ( false )
258- expect ( component . find ( '.i-carbon- arrow-down' ) . exists ( ) ) . toBe ( false )
243+ expect ( component . find ( '.i-carbon\\: arrow-up' ) . exists ( ) ) . toBe ( false )
244+ expect ( component . find ( '.i-carbon\\: arrow-down' ) . exists ( ) ) . toBe ( false )
259245 } )
260246 } )
261247
0 commit comments