From 0113c389fb3279a28af86554ee3cae4119b7f24e Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 17 Aug 2017 21:03:37 +0200 Subject: [PATCH] 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, --- src/lib/menu/menu.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/menu/menu.spec.ts b/src/lib/menu/menu.spec.ts index 61b562001bb..7b77a6940f4 100644 --- a/src/lib/menu/menu.spec.ts +++ b/src/lib/menu/menu.spec.ts @@ -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'); - }); + })); });