@@ -254,7 +254,7 @@ describe('FacetSelector', () => {
254254 expect ( mockDeselectCategory ) . toHaveBeenCalledWith ( 'performance' )
255255 } )
256256
257- it ( 'disables all button when all facets in category are selected' , async ( ) => {
257+ it ( 'marks all button as checked when all facets in category are selected' , async ( ) => {
258258 // Select all performance facets
259259 const performanceFacets : ( string | ComparisonFacet ) [ ] = FACETS_BY_CATEGORY . performance . filter (
260260 f => ! FACET_INFO [ f ] . comingSoon ,
@@ -265,20 +265,20 @@ describe('FacetSelector', () => {
265265 const component = await mountSuspended ( FacetSelector )
266266
267267 const allButton = component . findAll ( 'button[role="radio"]' ) . find ( b => b . text ( ) === 'all' )
268- // First all button (performance) should be aria-disabled
269- expect ( allButton ! . attributes ( 'aria-disabled ' ) ) . toBe ( 'true' )
268+ // First all button (performance) should be checked
269+ expect ( allButton ! . attributes ( 'aria-checked ' ) ) . toBe ( 'true' )
270270 } )
271271
272- it ( 'disables none button when no facets in category are selected' , async ( ) => {
272+ it ( 'marks none button as checked when no facets in category are selected' , async ( ) => {
273273 // Deselect all performance facets
274274 mockSelectedFacets . value = [ 'downloads' ] // only health facet selected
275275 mockIsFacetSelected . mockImplementation ( ( f : string ) => f === 'downloads' )
276276
277277 const component = await mountSuspended ( FacetSelector )
278278
279279 const noneButton = component . findAll ( 'button[role="radio"]' ) . find ( b => b . text ( ) === 'none' )
280- // First none button (performance) should be aria-disabled
281- expect ( noneButton ! . attributes ( 'aria-disabled ' ) ) . toBe ( 'true' )
280+ // First none button (performance) should be checked
281+ expect ( noneButton ! . attributes ( 'aria-checked ' ) ) . toBe ( 'true' )
282282 } )
283283 } )
284284
0 commit comments