From 73bc948faaf4f3a566256e5e733109f9847bb252 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 15 Feb 2018 20:16:26 +0100 Subject: [PATCH] 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. --- src/lib/select/select.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/select/select.spec.ts b/src/lib/select/select.spec.ts index 0a464b34be1..c0c83903593 100644 --- a/src/lib/select/select.spec.ts +++ b/src/lib/select/select.spec.ts @@ -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();