Skip to content

Commit

Permalink
Revert "Delete upgrader-view.test.ts"
Browse files Browse the repository at this point in the history
This reverts commit ab58499.
  • Loading branch information
madsrasmussen committed Dec 13, 2024
1 parent ab58499 commit e87d1fc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts
Original file line number Diff line number Diff line change
@@ -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);
});
}
});

0 comments on commit e87d1fc

Please sign in to comment.