From 93b465c3b23948fddef05368e196acc80c40d457 Mon Sep 17 00:00:00 2001 From: Antoine Snyers Date: Thu, 24 Oct 2019 11:48:08 +0200 Subject: [PATCH] Use waitForAngular() so e2e tests don't run while data is still loading --- e2e/app.po.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/app.po.ts b/e2e/app.po.ts index 54b5b55af3..c76bef118f 100644 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -2,7 +2,8 @@ import { browser, element, by } from 'protractor'; export class ProtractorPage { navigateTo() { - return browser.get('/'); + return browser.get('/') + .then(() => browser.waitForAngular()); } getPageTitleText() {