Skip to content

Commit 0b81644

Browse files
committed
test: cover theme-specific contrast in a11y test
1 parent 704ae74 commit 0b81644

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/nuxt/a11y.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3586,6 +3586,22 @@ describe('background theme accessibility', () => {
35863586
}
35873587

35883588
const components = [
3589+
{
3590+
name: 'AlertWarning',
3591+
mount: () =>
3592+
mountSuspended(Alert, {
3593+
props: { variant: 'warning', title: 'Warning title' },
3594+
slots: { default: '<p>Warning body</p>' },
3595+
}),
3596+
},
3597+
{
3598+
name: 'AlertError',
3599+
mount: () =>
3600+
mountSuspended(Alert, {
3601+
props: { variant: 'error', title: 'Error title' },
3602+
slots: { default: '<p>Error body</p>' },
3603+
}),
3604+
},
35893605
{ name: 'AppHeader', mount: () => mountSuspended(AppHeader) },
35903606
{ name: 'AppFooter', mount: () => mountSuspended(AppFooter) },
35913607
{ name: 'HeaderSearchBox', mount: () => mountSuspended(HeaderSearchBox) },

0 commit comments

Comments
 (0)