Skip to content

Commit a24c1f0

Browse files
fix(cypress): revert previous uncommented test
1 parent 9a8772b commit a24c1f0

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

packages/kit-headless/src/components/accordion/accordion.spec.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,24 @@ describe('Accordion', () => {
5555
.should('have.attr', 'aria-expanded', 'true');
5656
});
5757

58-
// it(`GIVEN 3 accordion items with the first one opened
59-
// WHEN clicking the middle one
60-
// THEN the content of the first item should close, and the middle should open.
61-
// `, () => {
62-
// cy.mount(<ThreeDisclosureAccordion />);
58+
it(`GIVEN 3 accordion items with the first one opened
59+
WHEN clicking the middle one
60+
THEN the content of the first item should close, and the middle should open.
61+
`, () => {
62+
cy.mount(<ThreeDisclosureAccordion />);
6363

64-
// cy.findByRole('button', { name: /Item 1/i })
65-
// .click()
66-
// .should('have.attr', 'aria-expanded', 'true');
64+
cy.findByRole('button', { name: /Item 1/i })
65+
.click()
66+
.should('have.attr', 'aria-expanded', 'true');
6767

68-
// cy.findByRole('button', { name: /Item 2/i })
69-
// .click()
70-
// .should('have.attr', 'aria-expanded', 'true');
68+
cy.findByRole('button', { name: /Item 2/i })
69+
.click()
70+
.should('have.attr', 'aria-expanded', 'true');
7171

72-
// cy.findByRole('button', { name: /Item 1/i }).should(
73-
// 'have.attr',
74-
// 'aria-expanded',
75-
// 'false'
76-
// );
77-
// });
72+
cy.findByRole('button', { name: /Item 1/i }).should(
73+
'have.attr',
74+
'aria-expanded',
75+
'false'
76+
);
77+
});
7878
});

0 commit comments

Comments
 (0)