File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/Umbraco.Web.UI.Client/src/apps/upgrader Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ import { UmbUpgraderViewElement } from './upgrader-view.element.js' ;
2+ import { expect , fixture , html } from '@open-wc/testing' ;
3+
4+ import { type UmbTestRunnerWindow , defaultA11yConfig } from '@umbraco-cms/internal/test-utils' ;
5+
6+ describe ( 'UmbUpgraderView' , ( ) => {
7+ let element : UmbUpgraderViewElement ;
8+
9+ beforeEach ( async ( ) => {
10+ element = await fixture ( html `< umb-upgrader-view > </ umb-upgrader-view > ` ) ;
11+ } ) ;
12+
13+ it ( 'is defined with its own instance' , ( ) => {
14+ expect ( element ) . to . be . instanceOf ( UmbUpgraderViewElement ) ;
15+ } ) ;
16+
17+ if ( ( window as UmbTestRunnerWindow ) . __UMBRACO_TEST_RUN_A11Y_TEST ) {
18+ it ( 'passes the a11y audit' , async ( ) => {
19+ await expect ( element ) . to . be . accessible ( defaultA11yConfig ) ;
20+ } ) ;
21+ }
22+ } ) ;
You can’t perform that action at this time.
0 commit comments