Skip to content

Commit df2c38c

Browse files
authored
test: add Lumo visual tests for virtual-list indicators variants (#10880)
1 parent ff51e1a commit df2c38c

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

5.48 KB
Loading
6.63 KB
Loading
5.9 KB
Loading

‎packages/virtual-list/test/visual/lumo/virtual-list.test.js‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,21 @@ describe('virtual-list', () => {
2727
it('basic', async () => {
2828
await visualDiff(div, 'basic');
2929
});
30+
31+
it('theme-overflow-indicator-bottom', async () => {
32+
element.setAttribute('theme', 'overflow-indicator-bottom');
33+
await visualDiff(div, 'theme-overflow-indicator-bottom');
34+
});
35+
36+
it('theme-overflow-indicators', async () => {
37+
element.setAttribute('theme', 'overflow-indicators');
38+
element.scrollTop = 100;
39+
await visualDiff(div, 'theme-overflow-indicators');
40+
});
41+
42+
it('theme-overflow-indicator-top', async () => {
43+
element.setAttribute('theme', 'overflow-indicator-top');
44+
element.scrollTop = element.scrollHeight - element.clientHeight;
45+
await visualDiff(div, 'theme-overflow-indicator-top');
46+
});
3047
});

0 commit comments

Comments
 (0)