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:
parent
447e534350
commit
d28243d5fc
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue