Skip to content

Commit 63c489a

Browse files
committed
add detectChanges inside the stable block
1 parent 9df164b commit 63c489a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/select/select.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ describe('MdSelect', () => {
992992
fixture.detectChanges();
993993

994994
fixture.whenStable().then(() => {
995+
fixture.detectChanges();
995996
const triggerLeft = trigger.getBoundingClientRect().left;
996997
const firstOptionLeft =
997998
document.querySelector('.cdk-overlay-pane md-option').getBoundingClientRect().left;
@@ -1011,6 +1012,7 @@ describe('MdSelect', () => {
10111012
fixture.detectChanges();
10121013

10131014
fixture.whenStable().then(() => {
1015+
fixture.detectChanges();
10141016
const triggerRight = trigger.getBoundingClientRect().right;
10151017
const firstOptionRight =
10161018
document.querySelector('.cdk-overlay-pane md-option').getBoundingClientRect().right;

0 commit comments

Comments
 (0)