test(aio): wait for Angular to avoid flake in e2e test (#21047)
PR Close #21047
This commit is contained in:
parent
b5934fc582
commit
c8d2e0a3bc
|
@ -58,6 +58,7 @@ describe('site App', function() {
|
||||||
expect(page.getScrollTop()).toBeGreaterThan(0);
|
expect(page.getScrollTop()).toBeGreaterThan(0);
|
||||||
|
|
||||||
page.getNavItem(/api/i).click();
|
page.getNavItem(/api/i).click();
|
||||||
|
browser.waitForAngular();
|
||||||
expect(page.locationPath()).toBe('/api');
|
expect(page.locationPath()).toBe('/api');
|
||||||
expect(page.getScrollTop()).toBe(0);
|
expect(page.getScrollTop()).toBe(0);
|
||||||
});
|
});
|
||||||
|
@ -69,6 +70,7 @@ describe('site App', function() {
|
||||||
expect(page.getScrollTop()).toBeGreaterThan(0);
|
expect(page.getScrollTop()).toBeGreaterThan(0);
|
||||||
|
|
||||||
page.getNavItem(/security/i).click();
|
page.getNavItem(/security/i).click();
|
||||||
|
browser.waitForAngular();
|
||||||
expect(page.locationPath()).toBe('/guide/security');
|
expect(page.locationPath()).toBe('/guide/security');
|
||||||
expect(page.getScrollTop()).toBe(0);
|
expect(page.getScrollTop()).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue