This commit is contained in:
Niels Lyngsø
2023-12-13 14:19:13 +01:00
parent 96e9bc7a6a
commit eefb59d61a
2 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
import { expect, fixture, html } from '@open-wc/testing';
//import { expect, fixture, html } from '@open-wc/testing';
//TODO: Test has been commented out while we figure out how to setup import maps for the test environment
// import { UmbPickerLayoutSectionElement } from './picker-layout-section.element.js';
// import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils';
@@ -13,7 +13,9 @@ import { expect, fixture, html } from '@open-wc/testing';
// expect(element).to.be.instanceOf(UmbPickerLayoutSectionElement);
// });
// it('passes the a11y audit', async () => {
// await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
// });
// if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) {
// it('passes the a11y audit', async () => {
// await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
// });
// }
// });

View File

@@ -12,9 +12,11 @@ describe('UmbInputStaticFileElement', () => {
expect(element).to.be.instanceOf(UmbInputStaticFileElement);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) {
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
}
describe('Public API', () => {
describe('properties', () => {