Skip to content

Commit 1d310bf

Browse files
committed
test: add test for sizes
1 parent 6c29051 commit 1d310bf

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/nuxt/a11y.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,17 @@ describe('component accessibility audits', () => {
28752875
const results = await runAxe(component)
28762876
expect(results.violations).toEqual([])
28772877
})
2878+
2879+
it('should have no accessibility violations in all sizes', async () => {
2880+
const sizes = ['xs', 'lg'] as const
2881+
for (const size of sizes) {
2882+
const component = await mountSuspended(UserAvatar, {
2883+
props: { username: 'testuser', size },
2884+
})
2885+
const results = await runAxe(component)
2886+
expect(results.violations).toEqual([])
2887+
}
2888+
})
28782889
})
28792890

28802891
// Diff components

0 commit comments

Comments
 (0)