diff --git a/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts b/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts index 3780c0e63d..3bdfaccdd0 100644 --- a/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts +++ b/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts @@ -1,5 +1,5 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; import UmbLoginElement from './login.element.js'; describe('UmbLogin', () => { @@ -13,7 +13,7 @@ describe('UmbLogin', () => { expect(element).to.be.instanceOf(UmbLoginElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts index 7f124d1a09..1c351dd97e 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerConsentElement } from './installer-consent.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerConsentElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerConsentElement', () => { expect(element).to.be.instanceOf(UmbInstallerConsentElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts index 3131ff7a9a..d799159f5c 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerDatabaseElement } from './installer-database.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerDatabaseElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerDatabaseElement', () => { expect(element).to.be.instanceOf(UmbInstallerDatabaseElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts index 0cb181e7a8..1b3d1cc325 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerErrorElement } from './installer-error.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerErrorElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerErrorElement', () => { expect(element).to.be.instanceOf(UmbInstallerErrorElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts index d7c72bf535..4e1e7852b3 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerElement } from './installer.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerElement', () => { expect(element).to.be.instanceOf(UmbInstallerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts index 8de7c59b69..1a6b7c51e4 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerInstallingElement } from './installer-installing.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerInstallingElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerInstallingElement', () => { expect(element).to.be.instanceOf(UmbInstallerInstallingElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts index e07bccd65f..e5a6bcf2a1 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerLayoutElement } from './installer-layout.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerLayoutElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerLayoutElement', () => { expect(element).to.be.instanceOf(UmbInstallerLayoutElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts index 74868a726c..318f52adc6 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInstallerUserElement } from './installer-user.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // TODO: Write tests describe('UmbInstallerUserElement', () => { @@ -15,7 +15,7 @@ describe('UmbInstallerUserElement', () => { expect(element).to.be.instanceOf(UmbInstallerUserElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts b/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts index 926830a320..52cca99b62 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbUpgraderViewElement } from './upgrader-view.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbUpgraderView', () => { let element: UmbUpgraderViewElement; @@ -14,7 +14,7 @@ describe('UmbUpgraderView', () => { expect(element).to.be.instanceOf(UmbUpgraderViewElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.test.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.test.ts index 467d68182e..54103ff390 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIBlockGridElement } from './property-editor-ui-block-grid.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIBlockGridElement', () => { let element: UmbPropertyEditorUIBlockGridElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIBlockGridElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-type-configuration/property-editor-ui-block-grid-type-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-type-configuration/property-editor-ui-block-grid-type-configuration.test.ts index 686d53c300..3dd816a17b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-type-configuration/property-editor-ui-block-grid-type-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-type-configuration/property-editor-ui-block-grid-type-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIBlockGridTypeConfigurationElement } from './property-editor-ui-block-grid-type-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIBlockGridBlockConfigurationElement', () => { let element: UmbPropertyEditorUIBlockGridTypeConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIBlockGridBlockConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridTypeConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.test.ts index 198c1f427e..53f39fbae7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIBlockListElement } from './property-editor-ui-block-list.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIBlockListElement', () => { let element: UmbPropertyEditorUIBlockListElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIBlockListElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockListElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-type-configuration/property-editor-ui-block-list-type-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-type-configuration/property-editor-ui-block-list-type-configuration.test.ts index b589bb34bf..15f137fff2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-type-configuration/property-editor-ui-block-list-type-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-type-configuration/property-editor-ui-block-list-type-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIBlockListBlockConfigurationElement } from './property-editor-ui-block-list-type-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIBlockListBlockConfigurationElement', () => { let element: UmbPropertyEditorUIBlockListBlockConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIBlockListBlockConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockListBlockConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.test.ts index ed53035b18..423d378295 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputBlockTypeElement } from './input-block-type.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputMediaElement', () => { let element: UmbInputBlockTypeElement; @@ -12,7 +12,7 @@ describe('UmbInputMediaElement', () => { expect(element).to.be.instanceOf(UmbInputBlockTypeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-type/property-editors/block-type-group-configuration/property-editor-ui-block-type-group-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-type/property-editors/block-type-group-configuration/property-editor-ui-block-type-group-configuration.test.ts index a95496df4f..2e0052cb29 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-type/property-editors/block-type-group-configuration/property-editor-ui-block-type-group-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-type/property-editors/block-type-group-configuration/property-editor-ui-block-type-group-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIBlockGridGroupConfigurationElement } from './property-editor-ui-block-type-group-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIBlockGridGroupConfigurationElement', () => { let element: UmbPropertyEditorUIBlockGridGroupConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIBlockGridGroupConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridGroupConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts index f5d466601c..85ebe115de 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbExtensionSlotElement } from './extension-slot.element.js'; import { customElement } from '@umbraco-cms/backoffice/external/lit'; -import type { ManifestDashboard} from '@umbraco-cms/backoffice/extension-registry'; +import type { ManifestDashboard } from '@umbraco-cms/backoffice/extension-registry'; import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import type { UmbExtensionElementInitializer } from '@umbraco-cms/backoffice/extension-api'; @@ -28,7 +28,7 @@ describe('UmbExtensionSlotElement', () => { /* // This test fails offen on FireFox, there is no real need for this test. So i have chosen to skip it. - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts index 14fc9b8f74..ade8f5af67 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputColorElement } from './input-color.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputColorElement', () => { let element: UmbInputColorElement; @@ -12,7 +12,7 @@ describe('UmbInputColorElement', () => { expect(element).to.be.instanceOf(UmbInputColorElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts index c44689676a..9db2822b95 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputDateElement } from './input-date.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputDateElement', () => { let element: UmbInputDateElement; @@ -12,7 +12,7 @@ describe('UmbInputDateElement', () => { expect(element).to.be.instanceOf(UmbInputDateElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts index 6ad52a04f4..0c311ce8fe 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputDropdownListElement } from './input-dropdown-list.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputDateElement', () => { let element: UmbInputDropdownListElement; @@ -12,7 +12,7 @@ describe('UmbInputDateElement', () => { expect(element).to.be.instanceOf(UmbInputDropdownListElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts index 58ed37c969..c20c89299c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputEyeDropperElement } from './input-eye-dropper.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputEyeDropperElement', () => { let element: UmbInputEyeDropperElement; @@ -12,7 +12,7 @@ describe('UmbInputEyeDropperElement', () => { expect(element).to.be.instanceOf(UmbInputEyeDropperElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts index 463d6b671f..0311c7bcff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputNumberRangeElement } from './input-number-range.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUINumberRangeElement', () => { let element: UmbInputNumberRangeElement; @@ -12,7 +12,7 @@ describe('UmbPropertyEditorUINumberRangeElement', () => { expect(element).to.be.instanceOf(UmbInputNumberRangeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts index 8cf664b4ce..fd2387ad2b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts @@ -1,7 +1,7 @@ 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 { UmbPickerSectionElement } from './picker-section.element.js'; -// import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +// import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // describe('UmbPickerSectionElement', () => { // let element: UmbPickerSectionElement; @@ -13,7 +13,7 @@ import { expect, fixture, html } from '@open-wc/testing'; // expect(element).to.be.instanceOf(UmbPickerSectionElement); // }); -// if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { +// if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { // it('passes the a11y audit', async () => { // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); // }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts index 534b84c10e..ac5cecbc4a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts @@ -1,6 +1,6 @@ // import { expect, fixture, html } from '@open-wc/testing'; // import { UmbIconPickerModalElement } from './icon-picker-modal.element.js'; -// import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +// import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // describe('umb-icon-picker-modal', () => { // let element: UmbIconPickerModalElement; @@ -13,7 +13,7 @@ // expect(element).to.be.instanceOf(UmbIconPickerModalElement); // }); -// if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { +// if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { // // TODO: Reinstate this test when the a11y audit is fixed on uui-color-picker // // it('passes the a11y audit', async () => { // // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker.test.ts index 2d34804b3a..356bb508ed 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker.test.ts @@ -1,7 +1,7 @@ //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'; +// import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // describe('UmbPickerLayoutSectionElement', () => { // let element: UmbPickerLayoutSectionElement; @@ -13,7 +13,7 @@ // expect(element).to.be.instanceOf(UmbPickerLayoutSectionElement); // }); -// if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { +// if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { // it('passes the a11y audit', async () => { // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); // }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts index 44c10c90c4..e21e5a90f2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts @@ -1,9 +1,6 @@ import { fixture, expect, html } from '@open-wc/testing'; -import type { - UmbNotificationDefaultData} from './notification-layout-default.element.js'; -import { - UmbNotificationLayoutDefaultElement -} from './notification-layout-default.element.js'; +import type { UmbNotificationDefaultData } from './notification-layout-default.element.js'; +import { UmbNotificationLayoutDefaultElement } from './notification-layout-default.element.js'; import type { UUIToastNotificationLayoutElement } from '@umbraco-cms/backoffice/external/uui'; import { UmbNotificationHandler } from '@umbraco-cms/backoffice/notification'; @@ -32,7 +29,7 @@ describe('UmbNotificationLayoutDefault', () => { expect(element).to.be.instanceOf(UmbNotificationLayoutDefaultElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts index f1428dca59..ec201ef0ce 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUICheckboxListElement } from './property-editor-ui-checkbox-list.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUICheckboxListElement', () => { let element: UmbPropertyEditorUICheckboxListElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUICheckboxListElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICheckboxListElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts index 7c0e64a11f..019979333e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUICollectionViewBulkActionPermissionsElement } from './property-editor-ui-collection-view-bulk-action-permissions.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUICollectionViewBulkActionPermissionsElement', () => { let element: UmbPropertyEditorUICollectionViewBulkActionPermissionsElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUICollectionViewBulkActionPermissionsElement', () => expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewBulkActionPermissionsElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts index 203416aead..9bc2a6e955 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUICollectionViewColumnConfigurationElement } from './property-editor-ui-collection-view-column-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUICollectionViewColumnConfigurationElement', () => { let element: UmbPropertyEditorUICollectionViewColumnConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUICollectionViewColumnConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewColumnConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts index f91606cf5e..602083f78a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUICollectionViewLayoutConfigurationElement } from './property-editor-ui-collection-view-layout-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUICollectionViewLayoutConfigurationElement', () => { let element: UmbPropertyEditorUICollectionViewLayoutConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUICollectionViewLayoutConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewLayoutConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts index e2638728cf..15614d6781 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUICollectionViewOrderByElement } from './property-editor-ui-collection-view-order-by.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUICollectionViewOrderByElement', () => { let element: UmbPropertyEditorUICollectionViewOrderByElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUICollectionViewOrderByElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewOrderByElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts index 7c9518b8f0..4c44d054ee 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUICollectionViewElement } from './property-editor-ui-collection-view.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUICollectionViewElement', () => { let element: UmbPropertyEditorUICollectionViewElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUICollectionViewElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts index ac2841f36d..79d7bc0740 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIColorPickerElement } from './property-editor-ui-color-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIColorPickerElement', () => { let element: UmbPropertyEditorUIColorPickerElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIColorPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIColorPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts index e2581e9bc8..7568a5eaef 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import type { UmbInputDateElement } from '../../../components/input-date/input-date.element.js'; import { UmbPropertyEditorUIDatePickerElement } from './property-editor-ui-date-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; describe('UmbPropertyEditorUIDatePickerElement', () => { @@ -37,7 +37,7 @@ describe('UmbPropertyEditorUIDatePickerElement', () => { expect(inputElement.type).to.equal('time'); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts index 64eedd3d8e..fdf9f83112 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIDropdownElement } from './property-editor-ui-dropdown.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIDropdownElement', () => { let element: UmbPropertyEditorUIDropdownElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIDropdownElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIDropdownElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts index 3ac40ef46b..db48341716 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIEyeDropperElement } from './property-editor-ui-eye-dropper.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIEyeDropperElement', () => { let element: UmbPropertyEditorUIEyeDropperElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIEyeDropperElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIEyeDropperElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts index f946507ae1..82a50e7302 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIIconPickerElement } from './property-editor-ui-icon-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIIconPickerElement', () => { let element: UmbPropertyEditorUIIconPickerElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIIconPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIIconPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts index 9813b3230a..ee4848100d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUILabelElement } from './property-editor-ui-label.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUILabelElement', () => { let element: UmbPropertyEditorUILabelElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUILabelElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUILabelElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts index 10ae4f4a86..214fa1728e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts @@ -1,6 +1,6 @@ /*import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIMarkdownEditorElement } from './property-editor-ui-markdown-editor.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIMarkdownEditorElement', () => { let element: UmbPropertyEditorUIMarkdownEditorElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIMarkdownEditorElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMarkdownEditorElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts index eadd74f29f..c6826daa78 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIMemberGroupPickerElement } from './property-editor-ui-member-group-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIMemberGroupPickerElement', () => { let element: UmbPropertyEditorUIMemberGroupPickerElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIMemberGroupPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMemberGroupPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts index bab51e8959..2595725c6b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIMemberPickerElement } from './property-editor-ui-member-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIMemberPickerElement', () => { let element: UmbPropertyEditorUIMemberPickerElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIMemberPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMemberPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts index 598909dd4d..97dafc057f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIMultiUrlPickerElement } from './property-editor-ui-multi-url-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIMultiUrlPickerElement', () => { let element: UmbPropertyEditorUIMultiUrlPickerElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIMultiUrlPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMultiUrlPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts index c650bfce4b..4ae275c732 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIMultipleTextStringElement } from './property-editor-ui-multiple-text-string.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIMultipleTextStringElement', () => { let element: UmbPropertyEditorUIMultipleTextStringElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIMultipleTextStringElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMultipleTextStringElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts index 28d362a592..2536ee0998 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUINumberRangeElement } from './property-editor-ui-number-range.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUINumberRangeElement', () => { let element: UmbPropertyEditorUINumberRangeElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUINumberRangeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUINumberRangeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts index 75f2e7cc33..3806cfb685 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIOrderDirectionElement } from './property-editor-ui-order-direction.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIOrderDirectionElement', () => { let element: UmbPropertyEditorUIOrderDirectionElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIOrderDirectionElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIOrderDirectionElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts index 2f21434de2..955ea160de 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIOverlaySizeElement } from './property-editor-ui-overlay-size.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIOverlaySizeElement', () => { let element: UmbPropertyEditorUIOverlaySizeElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIOverlaySizeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIOverlaySizeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts index f6dd7ea791..a4b082c78b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIRadioButtonListElement } from './property-editor-ui-radio-button-list.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIRadioButtonListElement', () => { let element: UmbPropertyEditorUIRadioButtonListElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIRadioButtonListElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIRadioButtonListElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts index 6d76461baa..5130a60b5a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUISliderElement } from './property-editor-ui-slider.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUISliderElement', () => { let element: UmbPropertyEditorUISliderElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUISliderElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUISliderElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/block-configuration/property-editor-ui-block-rte-type-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/block-configuration/property-editor-ui-block-rte-type-configuration.test.ts index ada7d0e463..139980a708 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/block-configuration/property-editor-ui-block-rte-type-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/block-configuration/property-editor-ui-block-rte-type-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIBlockRteBlockConfigurationElement } from './property-editor-ui-block-rte-type-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIBlockListBlockConfigurationElement', () => { let element: UmbPropertyEditorUIBlockRteBlockConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIBlockListBlockConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockRteBlockConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts index a8c9eff402..950c13cc19 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITinyMceDimensionsConfigurationElement } from './property-editor-ui-tiny-mce-dimensions-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITinyMceDimensionsConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceDimensionsConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUITinyMceDimensionsConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceDimensionsConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts index 1c7e51cc7c..9a1dc489a7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement } from './property-editor-ui-tiny-mce-maximagesize-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITinyMceMaxImSizeConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUITinyMceMaxImSizeConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts index 3199a0c760..785e7e9b9f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITinyMceStylesheetsConfigurationElement } from './property-editor-ui-tiny-mce-stylesheets-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITinyMceStylesheetsConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceStylesheetsConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUITinyMceStylesheetsConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceStylesheetsConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts index c9620b9601..29d7ae0f78 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITinyMceToolbarConfigurationElement } from './property-editor-ui-tiny-mce-toolbar-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITinyMceToolbarConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceToolbarConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUITinyMceToolbarConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceToolbarConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts index 0aa87752a8..9cd1904aff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITinyMceElement } from './property-editor-ui-tiny-mce.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITinyMceElement', () => { let element: UmbPropertyEditorUITinyMceElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUITinyMceElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts index 5ea2056371..b3294adf30 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIToggleElement } from './property-editor-ui-toggle.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIToggleElement', () => { let element: UmbPropertyEditorUIToggleElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIToggleElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIToggleElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/source-picker/property-editor-ui-tree-picker-source-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/source-picker/property-editor-ui-tree-picker-source-picker.test.ts index 1ce9777fa8..5032c8b1b3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/source-picker/property-editor-ui-tree-picker-source-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/source-picker/property-editor-ui-tree-picker-source-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITreePickerSourcePickerElement } from './property-editor-ui-tree-picker-source-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITreePickerSourcePickerElement', () => { let element: UmbPropertyEditorUITreePickerSourcePickerElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUITreePickerSourcePickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITreePickerSourcePickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts index 8badef8d1e..f5ab493360 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITreePickerElement } from './property-editor-ui-tree-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITreePickerElement', () => { let element: UmbPropertyEditorUITreePickerElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUITreePickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITreePickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts index a8f16c1a03..aba748f9ba 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIUploadFieldElement } from './property-editor-ui-upload-field.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIUploadFieldElement', () => { let element: UmbPropertyEditorUIUploadFieldElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIUploadFieldElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIUploadFieldElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts index a118ae22f0..2feaebd25a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIUserPickerElement } from './property-editor-ui-user-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIUserPickerElement', () => { let element: UmbPropertyEditorUIUserPickerElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIUserPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIUserPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts index 0f74f050fe..f4f1b1b6e2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIValueTypeElement } from './property-editor-ui-value-type.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIValueTypeElement', () => { let element: UmbPropertyEditorUIValueTypeElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIValueTypeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIValueTypeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/settings/welcome-dashboard/settings-welcome-dashboard.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/settings/welcome-dashboard/settings-welcome-dashboard.test.ts index 0a6ad31866..976347c020 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/settings/welcome-dashboard/settings-welcome-dashboard.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/settings/welcome-dashboard/settings-welcome-dashboard.test.ts @@ -2,7 +2,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardSettingsWelcomeElement } from './dashboard-settings-welcome.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbDashboardSettingsWelcomeElement', () => { let element: UmbDashboardSettingsWelcomeElement; @@ -15,7 +15,7 @@ describe('UmbDashboardSettingsWelcomeElement', () => { expect(element).to.be.instanceOf(UmbDashboardSettingsWelcomeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts index fee075d228..afabcaa6d2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputTreeElement } from './input-tree.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputTreeElement', () => { let element: UmbInputTreeElement; @@ -12,7 +12,7 @@ describe('UmbInputTreeElement', () => { expect(element).to.be.instanceOf(UmbInputTreeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts index d9f09aac2f..f0d59ffba5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardRedirectManagementElement } from './dashboard-redirect-management.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbDashboardRedirectManagement', () => { let element: UmbDashboardRedirectManagementElement; @@ -14,7 +14,7 @@ describe('UmbDashboardRedirectManagement', () => { expect(element).to.be.instanceOf(UmbDashboardRedirectManagementElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts index c7fa097fac..f3690f9a36 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputDocumentElement } from './input-document.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputDocumentElement', () => { let element: UmbInputDocumentElement; @@ -12,7 +12,7 @@ describe('UmbInputDocumentElement', () => { expect(element).to.be.instanceOf(UmbInputDocumentElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts index e4beabdb58..5e4ae77f02 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbDocumentWorkspaceElement } from './document-workspace.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbDocumentWorkspaceElement', () => { let element: UmbDocumentWorkspaceElement; @@ -13,7 +13,7 @@ describe('UmbDocumentWorkspaceElement', () => { expect(element).to.be.instanceOf(UmbDocumentWorkspaceElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { // TODO: should we use shadowDom here? await expect(element).to.be.accessible(defaultA11yConfig); diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts index 5f155fbc8e..d570625397 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputMediaElement } from './input-media.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputMediaElement', () => { let element: UmbInputMediaElement; @@ -12,7 +12,7 @@ describe('UmbInputMediaElement', () => { expect(element).to.be.instanceOf(UmbInputMediaElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-cropper/property-editor-ui-image-cropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-cropper/property-editor-ui-image-cropper.test.ts index f40bcfab04..ab7cefb123 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-cropper/property-editor-ui-image-cropper.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-cropper/property-editor-ui-image-cropper.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIImageCropperElement } from './property-editor-ui-image-cropper.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIImageCropperElement', () => { let element: UmbPropertyEditorUIImageCropperElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIImageCropperElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIImageCropperElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts index 8669456057..36c87d4d3c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIImageCropsConfigurationElement } from './property-editor-ui-image-crops-configuration.element.js'; -//import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +//import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIImageCropsConfigurationElement', () => { let element: UmbPropertyEditorUIImageCropsConfigurationElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUIImageCropsConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIImageCropsConfigurationElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { //TODO: This test is broken. It fails at forms because of missing labels even if you have them. // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/media-picker/property-editor-ui-media-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/media-picker/property-editor-ui-media-picker.test.ts index 3775dc4a47..112840c3eb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/media-picker/property-editor-ui-media-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/media-picker/property-editor-ui-media-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIMediaPickerElement } from './property-editor-ui-media-picker.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIMediaPickerElement', () => { let element: UmbPropertyEditorUIMediaPickerElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUIMediaPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMediaPickerElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/members/members/components/input-member/input-member.test.ts b/src/Umbraco.Web.UI.Client/src/packages/members/members/components/input-member/input-member.test.ts index 7bef94720e..fccd2c24af 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/members/members/components/input-member/input-member.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/members/members/components/input-member/input-member.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputMemberElement } from './input-member.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputMemberElement', () => { let element: UmbInputMemberElement; @@ -12,7 +12,7 @@ describe('UmbInputMemberElement', () => { expect(element).to.be.instanceOf(UmbInputMemberElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts index ecb05f39ca..3cf027a769 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts @@ -2,7 +2,7 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardPublishedStatusElement } from './dashboard-published-status.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbDashboardPublishedStatus', () => { let element: UmbDashboardPublishedStatusElement; @@ -15,7 +15,7 @@ describe('UmbDashboardPublishedStatus', () => { expect(element).to.be.instanceOf(UmbDashboardPublishedStatusElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts index fbcef53a98..b357250db1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts @@ -1,7 +1,7 @@ /* import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardTelemetryElement } from './dashboard-telemetry.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbDashboardTelemetryElement', () => { let element: UmbDashboardTelemetryElement; @@ -14,7 +14,7 @@ describe('UmbDashboardTelemetryElement', () => { expect(element).to.be.instanceOf(UmbDashboardTelemetryElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/static-file/components/input-static-file/input-static-file.test.ts b/src/Umbraco.Web.UI.Client/src/packages/static-file/components/input-static-file/input-static-file.test.ts index edd5aa531f..4188f0e18d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/static-file/components/input-static-file/input-static-file.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/static-file/components/input-static-file/input-static-file.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbInputStaticFileElement } from './input-static-file.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbInputStaticFileElement', () => { let element: UmbInputStaticFileElement; @@ -12,7 +12,7 @@ describe('UmbInputStaticFileElement', () => { expect(element).to.be.instanceOf(UmbInputStaticFileElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts index 33050a9295..2dc5c39d3c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITagsStorageTypeElement } from './property-editor-ui-tags-storage-type.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITagsStorageTypeElement', () => { let element: UmbPropertyEditorUITagsStorageTypeElement; @@ -15,7 +15,7 @@ describe('UmbPropertyEditorUITagsStorageTypeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITagsStorageTypeElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts index 2b36c4b203..e43d142750 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUITagsElement } from './property-editor-ui-tags.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUITagsElement', () => { let element: UmbPropertyEditorUITagsElement; @@ -13,7 +13,7 @@ describe('UmbPropertyEditorUITagsElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITagsElement); }); - if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/components/input-user-group/user-group-input.test.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/components/input-user-group/user-group-input.test.ts index adf885bbc1..22dc83a85b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/components/input-user-group/user-group-input.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/components/input-user-group/user-group-input.test.ts @@ -1,7 +1,7 @@ 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 { UmbPickerUserGroupElement } from './picker-user-group.element.js'; -// import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +// import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // describe('UmbPickerLayoutUserGroupElement', () => { // let element: UmbPickerUserGroupElement; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/modals/user-group-picker/user-group-picker-modal.test.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/modals/user-group-picker/user-group-picker-modal.test.ts index bd91f56c40..289c23b982 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/modals/user-group-picker/user-group-picker-modal.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/modals/user-group-picker/user-group-picker-modal.test.ts @@ -1,7 +1,7 @@ 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 { UmbPickerLayoutUserGroupElement } from './picker-layout-user-group.element.js'; -// import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +// import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // describe('UmbPickerLayoutUserGroupElement', () => { // let element: UmbPickerLayoutUserGroupElement; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/user-workspace.test.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/user-workspace.test.ts index 95525953f4..fba5017291 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/user-workspace.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/user-workspace.test.ts @@ -1,6 +1,6 @@ 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 { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +// import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; // import UmbWorkspaceUserElement from './editor-user.element.js'; // describe('UmbWorkspaceUserElement', () => { diff --git a/src/Umbraco.Web.UI.Client/utils/test-utils.ts b/src/Umbraco.Web.UI.Client/utils/test-utils.ts index fc83ba86e8..7f2a38c6fb 100644 --- a/src/Umbraco.Web.UI.Client/utils/test-utils.ts +++ b/src/Umbraco.Web.UI.Client/utils/test-utils.ts @@ -1,3 +1,8 @@ export const defaultA11yConfig = { ignoredRules: [], }; + +export type UmbTestRunnerWindow = Window & + typeof globalThis & { + __UMBRACO_TEST_RUN_A11Y_TEST: boolean; + };