Skip to content

Commit 0113c38

Browse files
crisbetoandrewseguin
authored andcommitted
chore: fix nested menu test failure (#6514)
Fixes a test failure that seems to have slipped through the cracks in between merging a fix and the update to Angular 4.3,
1 parent 72360e2 commit 0113c38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/menu/menu.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ describe('MdMenu', () => {
974974
.not.toContain('mat-elevation-z3', 'Expected no stacked elevation.');
975975
});
976976

977-
it('should close all of the menus when the root is closed programmatically', () => {
977+
it('should close all of the menus when the root is closed programmatically', fakeAsync(() => {
978978
compileTestComponent();
979979
instance.rootTrigger.openMenu();
980980
fixture.detectChanges();
@@ -991,9 +991,10 @@ describe('MdMenu', () => {
991991

992992
instance.rootTrigger.closeMenu();
993993
fixture.detectChanges();
994+
tick(500);
994995

995996
expect(overlay.querySelectorAll('.mat-menu-panel').length).toBe(0, 'Expected no open menus');
996-
});
997+
}));
997998

998999

9991000
});

0 commit comments

Comments
 (0)