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