test(aio): the tutorial link no longer ends with a slash

And since the navigation opens to the initial page, we don't need
to click the link.
This commit is contained in:
Peter Bacon Darwin 2017-03-27 16:38:14 +01:00 committed by Pete Bacon Darwin
parent 447e534350
commit d28243d5fc
1 changed files with 3 additions and 7 deletions

View File

@ -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);
});