File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
packages/progress-bar/test/dom Expand file tree Collapse file tree 2 files changed +42
-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-progress-bar host" ] =
5+ `<vaadin-progress-bar
6+ aria-valuemax="1"
7+ aria-valuemin="0"
8+ role="progressbar"
9+ style="--vaadin-progress-value: 0;"
10+ >
11+ </vaadin-progress-bar>
12+ ` ;
13+ /* end snapshot vaadin-progress-bar host */
14+
15+ snapshots [ "vaadin-progress-bar shadow" ] =
16+ `<div part="bar">
17+ <div part="value">
18+ </div>
19+ </div>
20+ ` ;
21+ /* end snapshot vaadin-progress-bar shadow */
22+
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-progress-bar.js' ;
4+
5+ describe ( 'vaadin-progress-bar' , ( ) => {
6+ let progress ;
7+
8+ beforeEach ( async ( ) => {
9+ progress = fixtureSync ( '<vaadin-progress-bar></vaadin-progress-bar>' ) ;
10+ await nextRender ( ) ;
11+ } ) ;
12+
13+ it ( 'host' , async ( ) => {
14+ await expect ( progress ) . dom . to . equalSnapshot ( ) ;
15+ } ) ;
16+
17+ it ( 'shadow' , async ( ) => {
18+ await expect ( progress ) . shadowDom . to . equalSnapshot ( ) ;
19+ } ) ;
20+ } ) ;
You can’t perform that action at this time.
0 commit comments