From e87d1fc2dcb4ec0006d2dbd53d95adbc117b0427 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 13 Dec 2024 13:48:40 +0100 Subject: [PATCH] Revert "Delete upgrader-view.test.ts" This reverts commit ab58499d92494b1e3e25a43f1852b9d79f8405e9. --- .../src/apps/upgrader/upgrader-view.test.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts 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 new file mode 100644 index 000000000000..8dd841a4b1b3 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts @@ -0,0 +1,22 @@ +import { UmbUpgraderViewElement } from './upgrader-view.element.js'; +import { expect, fixture, html } from '@open-wc/testing'; + +import { type UmbTestRunnerWindow, defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; + +describe('UmbUpgraderView', () => { + let element: UmbUpgraderViewElement; + + beforeEach(async () => { + element = await fixture(html``); + }); + + it('is defined with its own instance', () => { + expect(element).to.be.instanceOf(UmbUpgraderViewElement); + }); + + if ((window as UmbTestRunnerWindow).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } +});