Skip to content

Commit

Permalink
Unit test modified so as to failed before regression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Sep 21, 2020
1 parent a4878c2 commit c06f142
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/lazy-loading.html
Expand Up @@ -826,10 +826,8 @@
const ESTIMATED_SIZE = 1234;
const allItems = Array(...new Array(ESTIMATED_SIZE)).map((_, i) => `item ${i}`);

beforeEach(() => comboBox.dataProvider = getDataProvider(allItems));

it('should restore the scroll position after size update', () => {
comboBox.clearCache();
comboBox.dataProvider = getDataProvider(allItems);
comboBox.opened = true;
comboBox.$.overlay._scrollIntoView(75);
comboBox.size = 300;
Expand All @@ -839,7 +837,7 @@
});

it('should reset to 0 when filter applied and filtered items size more than page size', () => {
comboBox.clearCache();
comboBox.items = allItems;
comboBox.opened = true;
comboBox.$.overlay._scrollIntoView(500);
comboBox.filter = '1';
Expand Down

0 comments on commit c06f142

Please sign in to comment.