Skip to content

Commit de815cc

Browse files
crisbetojelbourn
authored andcommitted
test(material/select): fix failing unit test (#23870)
Fixes a unit test that started failing, because it tries to scroll the page down, but there isn't enough content for it to scroll. (cherry picked from commit 94aa7d3)
1 parent acda4c1 commit de815cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/select/select.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4270,7 +4270,7 @@ expect(Math.floor(scrollContainer.scrollTop))
42704270

42714271
it('should fall back to "below" positioning properly when scrolled', fakeAsync(() => {
42724272
// Give plenty of space for the select to open below the trigger
4273-
fixture.componentInstance.heightBelow = 650;
4273+
fixture.componentInstance.heightBelow = 2000;
42744274
fixture.detectChanges();
42754275

42764276
// Select an option too low in the list to fit in limited space above

0 commit comments

Comments
 (0)