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.
This commit is contained in:
Kristiyan Kostadinov
2018-02-15 20:16:26 +01:00
committed by Jeremy Elbourn
parent d84612eac7
commit 73bc948faa
+3
View File
@@ -2777,6 +2777,9 @@ describe('MatSelect', () => {
it('should align the first option with trigger text if no option is selected',
fakeAsync(() => {
// We shouldn't push it too far down for this one, because the default may
// end up being too much when running the tests on mobile browsers.
formField.style.top = '100px';
trigger.click();
fixture.detectChanges();
flush();