test(aio): wait for Angular to avoid flake in e2e test (#21047)

PR Close #21047
This commit is contained in:
George Kalpakas 2017-12-15 20:14:47 +02:00 committed by Kara Erickson
parent b5934fc582
commit c8d2e0a3bc
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ describe('site App', function() {
expect(page.getScrollTop()).toBeGreaterThan(0);
page.getNavItem(/api/i).click();
browser.waitForAngular();
expect(page.locationPath()).toBe('/api');
expect(page.getScrollTop()).toBe(0);
});
@ -69,6 +70,7 @@ describe('site App', function() {
expect(page.getScrollTop()).toBeGreaterThan(0);
page.getNavItem(/security/i).click();
browser.waitForAngular();
expect(page.locationPath()).toBe('/guide/security');
expect(page.getScrollTop()).toBe(0);
});