File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
packages/split-layout/test/dom Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ /* @web /test-runner snapshot v1 */
2+ export const snapshots = { } ;
3+
4+ snapshots [ "vaadin-split-layout host" ] =
5+ `<vaadin-split-layout orientation="horizontal">
6+ </vaadin-split-layout>
7+ ` ;
8+ /* end snapshot vaadin-split-layout host */
9+
10+ snapshots [ "vaadin-split-layout shadow" ] =
11+ `<slot
12+ id="primary"
13+ name="primary"
14+ >
15+ </slot>
16+ <div
17+ id="splitter"
18+ part="splitter"
19+ style="touch-action: none;"
20+ >
21+ <div part="handle">
22+ </div>
23+ </div>
24+ <slot
25+ id="secondary"
26+ name="secondary"
27+ >
28+ </slot>
29+ ` ;
30+ /* end snapshot vaadin-split-layout shadow */
31+
Original file line number Diff line number Diff line change 1+ import { expect } from '@vaadin/chai-plugins' ;
2+ import { fixtureSync , nextRender } from '@vaadin/testing-helpers' ;
3+ import '../../src/vaadin-split-layout.js' ;
4+
5+ describe ( 'vaadin-split-layout' , ( ) => {
6+ let layout ;
7+
8+ beforeEach ( async ( ) => {
9+ layout = fixtureSync ( '<vaadin-split-layout></vaadin-split-layout>' ) ;
10+ await nextRender ( ) ;
11+ } ) ;
12+
13+ it ( 'host' , async ( ) => {
14+ await expect ( layout ) . dom . to . equalSnapshot ( ) ;
15+ } ) ;
16+
17+ it ( 'shadow' , async ( ) => {
18+ await expect ( layout ) . shadowDom . to . equalSnapshot ( ) ;
19+ } ) ;
20+ } ) ;
You can’t perform that action at this time.
0 commit comments