add a11y test to dashboard
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user