feat(aio): refactors AppComponent and its kids + sidenav hiding (#15570)

-hides sidenav when current doc is not in sidenav menu
-displays top menu on the side as nodes instead of mini top menu
This commit is contained in:
Ward Bell
2017-03-29 14:13:40 -07:00
committed by Victor Berchet
parent 9c77a7cdaf
commit 9f2acf54bc
24 changed files with 724 additions and 338 deletions

View File

@ -21,9 +21,13 @@ describe('site App', function() {
// navigate to a different page
page.getLink('features').click();
expect(page.getDocViewerText()).toMatch(/Features/i);
// check that we can navigate to the tutorial page via a link in the navigation
page.getLink('tutorial').click();
// Show the menu; the tutorial section should be fully open from previous visit
page.docsMenuLink.click();
// Navigate to the tutorial introduction via a link in the sidenav
page.getNavItem(/introduction/i).click();
expect(page.getDocViewerText()).toMatch(/Tutorial: Tour of Heroes/i);
});