From b7c85702495d027274008bf66ef31545065a44be Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Sun, 11 Jun 2017 09:40:51 +0200 Subject: [PATCH] fixing e2e test error --- test/e2e/app.e2e-spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/app.e2e-spec.ts b/test/e2e/app.e2e-spec.ts index 22e5660f..68e409c0 100644 --- a/test/e2e/app.e2e-spec.ts +++ b/test/e2e/app.e2e-spec.ts @@ -7,8 +7,9 @@ describe('test-project App', () => { page = new TestProjectPage(); }); - it('should display welcome message', () => { + it('should display welcome message', async (done) => { page.navigateTo(); - expect(page.getParagraphText()).toEqual('Welcome to app!!'); + expect(await page.getParagraphText()).toEqual('Welcome to app!!'); + done(); }); });