Skip to content

Commit 44e2c1d

Browse files
committed
- Revert intergration test case to use defaults (noting the defaults have changed).
- Remove integration test that was testing the old default, rather than the correct behaviour.
1 parent f98b233 commit 44e2c1d

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

integration/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
ReactDOM.render(
1212
<div id="classic-accordion">
13-
<Accordion allowMultipleExpanded={false} allowZeroExpanded={false}>
13+
<Accordion>
1414
<AccordionItem>
1515
<AccordionItemHeading>
1616
<AccordionItemButton>Heading One</AccordionItemButton>

integration/wai-aria.spec.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -365,23 +365,6 @@ describe('WAI ARIA Spec', () => {
365365
}
366366
});
367367

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-
385368
it(`Optionally, each element that serves as a container for panel
386369
content has role region and aria-labelledby with a value that refers
387370
to the button that controls display of the panel.`, async () => {

0 commit comments

Comments
 (0)