correct test setup
This commit is contained in:
@@ -15,8 +15,6 @@ describe('UmbInstallerElement', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstallerElement);
|
||||
});
|
||||
|
||||
console.log(window);
|
||||
console.log('__UMBRACO_TEST_RUN_A11Y_TEST', (window as any).__UMBRACO_TEST_RUN_A11Y_TEST);
|
||||
if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) {
|
||||
it('passes the a11y audit', async () => {
|
||||
await expect(element).to.be.accessible(defaultA11yConfig);
|
||||
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
<title>Umbraco</title>
|
||||
<base href="/" />
|
||||
<script>
|
||||
window.__UMBRACO_TEST_RUN_A11Y_TEST = !devMode;
|
||||
window.__UMBRACO_TEST_RUN_A11Y_TEST = ${!devMode};
|
||||
</script>
|
||||
<script src="/node_modules/msw/lib/iife/index.js"></script>
|
||||
<link rel="stylesheet" href="node_modules/@umbraco-ui/uui-css/dist/uui-css.css">
|
||||
|
||||
Reference in New Issue
Block a user