Skip to content

Commit

Permalink
fix(material/autocomplete): update style.bottom value for broken test
Browse files Browse the repository at this point in the history
Fixes breaking Angular Component Autocomplete comoponent's autocomplete
spec.ts so that the value falls within an acceptable range based on the
new behavior of the autocomplete in landscape mode.

Fixes b/284148377
  • Loading branch information
essjay05 committed May 20, 2024
1 parent c7456e3 commit 30ae78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/autocomplete/autocomplete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,7 @@ describe('MDC-based MatAutocomplete', () => {
let inputReference = fixture.debugElement.query(By.css('.mdc-text-field'))!.nativeElement;

// Push the element down so it has a little bit of space, but not enough to render.
inputReference.style.bottom = '75px';
inputReference.style.bottom = '100px';
inputReference.style.position = 'fixed';

dispatchFakeEvent(inputEl, 'focusin');
Expand Down

0 comments on commit 30ae78e

Please sign in to comment.