correct test setup

This commit is contained in:
Niels Lyngsø
2023-12-07 13:32:41 +01:00
parent 7d5ed5b00d
commit ac3b4bcca8
2 changed files with 1 additions and 3 deletions

View File

@@ -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);

View File

@@ -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">