-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
64dcde7
commit faf217c
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/date-picker/test/dom/__snapshots__/date-picker-year-scroller.test.snap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["vaadin-date-picker-year-scroller shadow default"] = | ||
`<div | ||
id="scroller" | ||
tabindex="-1" | ||
> | ||
<div class="buffer"> | ||
</div> | ||
<div class="buffer"> | ||
</div> | ||
<div | ||
id="fullHeight" | ||
style="height: 1e+06px;" | ||
> | ||
</div> | ||
</div> | ||
`; | ||
/* end snapshot vaadin-date-picker-year-scroller shadow default */ | ||
|
18 changes: 18 additions & 0 deletions
18
packages/date-picker/test/dom/date-picker-year-scroller.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { expect } from '@vaadin/chai-plugins'; | ||
import { fixtureSync, nextFrame } from '@vaadin/testing-helpers'; | ||
import '../../src/vaadin-date-picker-year-scroller.js'; | ||
|
||
describe('vaadin-date-picker-year-scroller', () => { | ||
let yearScroller; | ||
|
||
beforeEach(async () => { | ||
yearScroller = fixtureSync('<vaadin-date-picker-year-scroller></vaadin-date-picker-year-scroller>'); | ||
await nextFrame(); | ||
}); | ||
|
||
describe('shadow', () => { | ||
it('default', async () => { | ||
await expect(yearScroller).shadowDom.to.equalSnapshot(); | ||
}); | ||
}); | ||
}); |