-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Delete upgrader-view.test.ts"
This reverts commit ab58499.
- Loading branch information
1 parent
ab58499
commit e87d1fc
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
} | ||
}); |