Skip to content

Commit 54593c0

Browse files
committed
test: add a11y test for the post embed
1 parent 91782f8 commit 54593c0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test/nuxt/a11y.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ import {
115115
AppHeader,
116116
AppLogo,
117117
BaseCard,
118+
BlueskyPostEmbed,
118119
BuildEnvironment,
119120
ButtonBase,
120121
LinkBase,
@@ -2467,6 +2468,18 @@ describe('component accessibility audits', () => {
24672468
})
24682469
})
24692470

2471+
describe('BlueskyPostEmbed', () => {
2472+
it('should have no accessibility violations in pending state', async () => {
2473+
const component = await mountSuspended(BlueskyPostEmbed, {
2474+
props: {
2475+
uri: 'at://did:plc:u5zp7npt5kpueado77kuihyz/app.bsky.feed.post/3mejzn5mrcc2g',
2476+
},
2477+
})
2478+
const results = await runAxe(component)
2479+
expect(results.violations).toEqual([])
2480+
})
2481+
})
2482+
24702483
describe('UserAvatar', () => {
24712484
it('should have no accessibility violations', async () => {
24722485
const component = await mountSuspended(UserAvatar, {

0 commit comments

Comments
 (0)