add a11y test to dashboard

This commit is contained in:
Jacob Overgaard
2022-09-23 13:32:56 +02:00
parent caae665e0c
commit 1c978736e4

View File

@@ -1,5 +1,6 @@
import { expect, fixture, html } from '@open-wc/testing';
import { defaultA11yConfig } from '../../../core/helpers/chai';
import { UmbDashboardPublishedStatusElement } from './dashboard-published-status.element';
describe('UmbDashboardPublishedStatus', () => {
@@ -12,4 +13,8 @@ describe('UmbDashboardPublishedStatus', () => {
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbDashboardPublishedStatusElement);
});
it('passes the a11y audit', async () => {
await expect(element).to.be.accessible(defaultA11yConfig);
});
});