diff --git a/aio/e2e/app.e2e-spec.ts b/aio/e2e/app.e2e-spec.ts index 1c72e2f274..fd18c98242 100644 --- a/aio/e2e/app.e2e-spec.ts +++ b/aio/e2e/app.e2e-spec.ts @@ -10,9 +10,8 @@ describe('site App', function() { }); it('should show features text after clicking "Features"', () => { - page.getLink('features').click().then(() => { - expect(page.getDocViewerText()).toMatch(/Progressive web apps/i); - }); + page.getLink('features').click(); + expect(page.getDocViewerText()).toMatch(/Progressive web apps/i); }); it('should show the tutorial index page at `/tutorial/`', () => { @@ -24,10 +23,7 @@ describe('site App', function() { page.getLink('features').click(); // check that we can navigate to the tutorial page via a link in the navigation - const heading = page.getNavHeading(/tutorial/i); - expect(heading.getText()).toMatch(/tutorial/i); - heading.click(); - page.getLink('tutorial/').click(); + page.getLink('tutorial').click(); expect(page.getDocViewerText()).toMatch(/Tutorial: Tour of Heroes/i); });