File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
11
11
ReactDOM . render (
12
12
< div id = "classic-accordion" >
13
- < Accordion allowMultipleExpanded = { false } allowZeroExpanded = { false } >
13
+ < Accordion >
14
14
< AccordionItem >
15
15
< AccordionItemHeading >
16
16
< AccordionItemButton > Heading One</ AccordionItemButton >
Original file line number Diff line number Diff line change @@ -365,23 +365,6 @@ describe('WAI ARIA Spec', () => {
365
365
}
366
366
} ) ;
367
367
368
- it ( `If the accordion panel associated with an accordion header is
369
- visible, and if the accordion does not permit the panel to be
370
- collapsed, the header button element has aria-disabled set to true.` , async ( ) => {
371
- const { browser, page, buttonsHandles } = await setup ( ) ;
372
- expect ( buttonsHandles . length ) . toEqual ( 3 ) ;
373
-
374
- const firstButtonHandle = buttonsHandles [ 0 ] ;
375
- await firstButtonHandle . click ( ) ;
376
-
377
- const buttonAriaDisabled = await page . evaluate (
378
- ( button ) => button . getAttribute ( 'aria-disabled' ) ,
379
- firstButtonHandle ,
380
- ) ;
381
-
382
- expect ( buttonAriaDisabled ) . toEqual ( 'true' ) ;
383
- } ) ;
384
-
385
368
it ( `Optionally, each element that serves as a container for panel
386
369
content has role region and aria-labelledby with a value that refers
387
370
to the button that controls display of the panel.` , async ( ) => {
You can’t perform that action at this time.
0 commit comments