Revert "Delete upgrader-view.test.ts"

This reverts commit ab58499d92.
This commit is contained in:
Mads Rasmussen
2024-12-13 13:48:40 +01:00
parent ab58499d92
commit e87d1fc2dc

View File

@@ -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`<umb-upgrader-view></umb-upgrader-view>`);
});
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);
});
}
});