File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
packages/login/test/visual/lumo
screenshots/login-form/baseline Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ import { fixtureSync } from '@vaadin/testing-helpers' ;
2+ import { visualDiff } from '@web/test-runner-visual-regression' ;
3+ import '@vaadin/vaadin-lumo-styles/props.css' ;
4+ import '@vaadin/vaadin-lumo-styles/global.css' ;
5+ import '@vaadin/vaadin-lumo-styles/components/login.css' ;
6+ import '../common.js' ;
7+ import '../../../vaadin-login-form.js' ;
8+
9+ describe ( 'login-form' , ( ) => {
10+ let div , element ;
11+
12+ beforeEach ( ( ) => {
13+ div = document . createElement ( 'div' ) ;
14+ div . style . display = 'inline-block' ;
15+ div . style . padding = '10px' ;
16+ element = fixtureSync ( '<vaadin-login-form></vaadin-login-form>' , div ) ;
17+ } ) ;
18+
19+ it ( 'basic' , async ( ) => {
20+ element . opened = true ;
21+ await visualDiff ( div , 'basic' ) ;
22+ } ) ;
23+
24+ it ( 'error' , async ( ) => {
25+ element . error = true ;
26+ await visualDiff ( div , 'error' ) ;
27+ } ) ;
28+ } ) ;
You can’t perform that action at this time.
0 commit comments