Skip to content

Commit ebfc656

Browse files
authored
test: add missing snapshot tests to split-layout (#9945)
1 parent 798fcd9 commit ebfc656

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
});

0 commit comments

Comments
 (0)