Skip to content

Commit eedbbe7

Browse files
committed
fix: add basic test for blog-post-federated-articles
1 parent 0f51b12 commit eedbbe7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

test/nuxt/a11y.spec.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ import {
123123
AboutLogoList,
124124
AuthorAvatar,
125125
AuthorList,
126+
BlogPostFederatedArticles,
126127
BlogPostListCard,
127128
BlogPostWrapper,
128129
BlueskyComment,
@@ -2287,6 +2288,32 @@ describe('component accessibility audits', () => {
22872288
})
22882289
})
22892290

2291+
describe('BlogPostFederatedArticles', () => {
2292+
it('should have no accessibility violations', async () => {
2293+
const component = await mountSuspended(BlogPostFederatedArticles, {
2294+
props: {
2295+
headline: 'Read more on Bluesky',
2296+
articles: [
2297+
{
2298+
url: 'https://example.com/post-1',
2299+
title: 'Federated Testing Patterns',
2300+
description: 'How to keep accessibility checks simple and maintainable.',
2301+
authorHandle: 'danielroe.dev',
2302+
},
2303+
{
2304+
url: 'https://example.com/post-2',
2305+
title: 'Composable Data in Vue',
2306+
description: 'Practical patterns for data composition in Vue components.',
2307+
authorHandle: 'salma.dev',
2308+
},
2309+
],
2310+
},
2311+
})
2312+
const results = await runAxe(component)
2313+
expect(results.violations).toEqual([])
2314+
})
2315+
})
2316+
22902317
describe('PackageReplacement', () => {
22912318
it('should have no accessibility violations for native replacement', async () => {
22922319
const component = await mountSuspended(PackageReplacement, {

0 commit comments

Comments
 (0)