mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
d84612eac7
commit
73bc948faa
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user