Skip to content

Commit a68fa21

Browse files
committed
test: added a11y check to tabs.spec
1 parent a427612 commit a68fa21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const DynamicTabsComponent = component$(
5050
);
5151

5252
describe('Tabs', () => {
53-
it('should render the component', () => {
53+
it('should render the component and check if its accessible', () => {
5454
cy.mount(
5555
<Tabs>
5656
<TabList>
@@ -68,6 +68,8 @@ describe('Tabs', () => {
6868
cy.findByRole('tab', { name: /Tab 2/i }).click();
6969

7070
cy.findByRole('tabpanel').should('contain', 'Panel 2');
71+
72+
cy.checkA11yForComponent();
7173
});
7274

7375
it('Given 3 tabs, when removing the last one dynamically, only 2 should remain', () => {

0 commit comments

Comments
 (0)