@@ -127,7 +127,7 @@ describe('FormSelectButton Core Component', () => {
127127 expect ( buttons [ 1 ] . classes ( ) ) . toContain (
128128 'bg-interface-menu-component-surface-selected'
129129 )
130- expect ( buttons [ 1 ] . classes ( ) ) . toContain ( 'text-primary' )
130+ expect ( buttons [ 1 ] . classes ( ) ) . toContain ( 'text-text- primary' )
131131 expect ( buttons [ 0 ] . classes ( ) ) . not . toContain (
132132 'bg-interface-menu-component-surface-selected'
133133 )
@@ -149,15 +149,15 @@ describe('FormSelectButton Core Component', () => {
149149 expect ( buttons [ 2 ] . text ( ) ) . toBe ( '3' )
150150 } )
151151
152- it ( 'emits string representation of number when clicked' , async ( ) => {
152+ it ( 'emits number value when clicked' , async ( ) => {
153153 const options = [ 10 , 20 , 30 ]
154154 const wrapper = mountComponent ( '10' , options )
155155
156156 await clickButton ( wrapper , '20' )
157157
158158 const emitted = wrapper . emitted ( 'update:modelValue' )
159159 expect ( emitted ) . toBeDefined ( )
160- expect ( emitted ! [ 0 ] ) . toEqual ( [ '20' ] )
160+ expect ( emitted ! [ 0 ] ) . toEqual ( [ 20 ] )
161161 } )
162162
163163 it ( 'highlights selected number option' , ( ) => {
@@ -168,7 +168,7 @@ describe('FormSelectButton Core Component', () => {
168168 expect ( buttons [ 1 ] . classes ( ) ) . toContain (
169169 'bg-interface-menu-component-surface-selected'
170170 )
171- expect ( buttons [ 1 ] . classes ( ) ) . toContain ( 'text-primary' )
171+ expect ( buttons [ 1 ] . classes ( ) ) . toContain ( 'text-text- primary' )
172172 } )
173173 } )
174174
@@ -337,7 +337,7 @@ describe('FormSelectButton Core Component', () => {
337337 'bg-interface-menu-component-surface-selected'
338338 ) // Selected styling disabled
339339 expect ( buttons [ 0 ] . classes ( ) ) . toContain ( 'opacity-50' )
340- expect ( buttons [ 0 ] . classes ( ) ) . toContain ( 'text-secondary' )
340+ expect ( buttons [ 0 ] . classes ( ) ) . toContain ( 'text-text- secondary' )
341341 } )
342342 } )
343343
@@ -399,7 +399,7 @@ describe('FormSelectButton Core Component', () => {
399399 expect ( selectedButton . classes ( ) ) . toContain (
400400 'bg-interface-menu-component-surface-selected'
401401 )
402- expect ( selectedButton . classes ( ) ) . toContain ( 'text-primary' )
402+ expect ( selectedButton . classes ( ) ) . toContain ( 'text-text- primary' )
403403 } )
404404
405405 it ( 'applies unselected styling to inactive options' , ( ) => {
@@ -408,7 +408,7 @@ describe('FormSelectButton Core Component', () => {
408408
409409 const unselectedButton = wrapper . findAll ( 'button' ) [ 1 ]
410410 expect ( unselectedButton . classes ( ) ) . toContain ( 'bg-transparent' )
411- expect ( unselectedButton . classes ( ) ) . toContain ( 'text-secondary' )
411+ expect ( unselectedButton . classes ( ) ) . toContain ( 'text-text- secondary' )
412412 } )
413413
414414 it ( 'applies hover effects to enabled unselected buttons' , ( ) => {
@@ -417,7 +417,7 @@ describe('FormSelectButton Core Component', () => {
417417
418418 const unselectedButton = wrapper . findAll ( 'button' ) [ 1 ]
419419 expect ( unselectedButton . classes ( ) ) . toContain (
420- 'hover:bg-interface-menu-component-surface-hovered '
420+ 'hover:bg-interface-menu-component-surface-selected/50 '
421421 )
422422 expect ( unselectedButton . classes ( ) ) . toContain ( 'cursor-pointer' )
423423 } )
@@ -477,13 +477,12 @@ describe('FormSelectButton Core Component', () => {
477477 const mixedOptions : any [ ] = [
478478 'string' ,
479479 123 ,
480- { label : 'Object' , value : 'obj' } ,
481- null
480+ { label : 'Object' , value : 'obj' }
482481 ]
483482 const wrapper = mountComponent ( '123' , mixedOptions )
484483
485484 const buttons = wrapper . findAll ( 'button' )
486- expect ( buttons ) . toHaveLength ( 4 )
485+ expect ( buttons ) . toHaveLength ( 3 )
487486 expect ( buttons [ 1 ] . classes ( ) ) . toContain (
488487 'bg-interface-menu-component-surface-selected'
489488 ) // Number 123 as string
0 commit comments