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,
This commit is contained in:
Kristiyan Kostadinov
2017-08-17 21:03:37 +02:00
committed by Andrew Seguin
parent 72360e2b11
commit 0113c389fb
+3 -2
View File
@@ -974,7 +974,7 @@ describe('MdMenu', () => {
.not.toContain('mat-elevation-z3', 'Expected no stacked elevation.');
});
it('should close all of the menus when the root is closed programmatically', () => {
it('should close all of the menus when the root is closed programmatically', fakeAsync(() => {
compileTestComponent();
instance.rootTrigger.openMenu();
fixture.detectChanges();
@@ -991,9 +991,10 @@ describe('MdMenu', () => {
instance.rootTrigger.closeMenu();
fixture.detectChanges();
tick(500);
expect(overlay.querySelectorAll('.mat-menu-panel').length).toBe(0, 'Expected no open menus');
});
}));
});