Skip to content

Commit 5e5b8b5

Browse files
crisbetoandrewseguin
authored andcommitted
build: fix select test failure on smaller devices (#9958)
Fixes one of the select positioning tests failing when running on a smaller device where the test component gets pushed too far down.
1 parent c4ede82 commit 5e5b8b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/select/select.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,9 @@ describe('MatSelect', () => {
27772777

27782778
it('should align the first option with trigger text if no option is selected',
27792779
fakeAsync(() => {
2780+
// We shouldn't push it too far down for this one, because the default may
2781+
// end up being too much when running the tests on mobile browsers.
2782+
formField.style.top = '100px';
27802783
trigger.click();
27812784
fixture.detectChanges();
27822785
flush();

0 commit comments

Comments
 (0)