docs: Restructure table of contents to provide a more streamlined experience. (#38353)

PR Close #38353
This commit is contained in:
David Shevitz 2020-08-05 21:23:22 +00:00 committed by Joey Perrott
parent f5a148b1b7
commit 71acf9dd49
2 changed files with 486 additions and 478 deletions

File diff suppressed because it is too large Load Diff

View File

@ -99,10 +99,11 @@ describe('site App', function() {
describe('scrolling to the top', () => {
it('should scroll to the top when navigating to another page', () => {
page.navigateTo('guide/security');
page.scrollTo('bottom');
expect(page.getScrollTop()).toBeGreaterThan(0);
// Navigate to Reference section, then check
// Find the navigation item that has the text "api"
page.click(page.getNavItem(/reference/i));
page.click(page.getNavItem(/api/i));
expect(page.locationPath()).toBe('/api');
expect(page.getScrollTop()).toBe(0);