Skip to content

Commit 493004f

Browse files
committed
test: update app-layout visual tests to use fixed height
1 parent 242df2b commit 493004f

19 files changed

+16
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
2+
3+
registerStyles(
4+
'vaadin-app-layout',
5+
css`
6+
:host,
7+
:host([overlay]) [part='backdrop'],
8+
[part='drawer'] {
9+
height: inherit;
10+
}
11+
`,
12+
);

packages/app-layout/test/visual/lumo/app-layout.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { fixtureSync } from '@vaadin/testing-helpers/dist/fixture.js';
22
import { visualDiff } from '@web/test-runner-visual-regression';
3+
import '../fixed-height-styles.js';
34
import '../../../theme/lumo/vaadin-app-layout.js';
45
import '../../../theme/lumo/vaadin-drawer-toggle.js';
56

@@ -8,7 +9,7 @@ describe('app-layout', () => {
89

910
beforeEach(() => {
1011
div = document.createElement('div');
11-
div.style.height = '100%';
12+
div.style.height = '600px';
1213

1314
element = fixtureSync(
1415
`
-65 Bytes
Loading
-66 Bytes
Loading
-319 Bytes
Loading
-1.83 KB
Loading
-95 Bytes
Loading
-90 Bytes
Loading
-319 Bytes
Loading
-1.39 KB
Loading

0 commit comments

Comments
 (0)