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,10 +10,9 @@ describe('site App', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should show features text after clicking "Features"', () => {
|
it('should show features text after clicking "Features"', () => {
|
||||||
page.getLink('features').click().then(() => {
|
page.getLink('features').click();
|
||||||
expect(page.getDocViewerText()).toMatch(/Progressive web apps/i);
|
expect(page.getDocViewerText()).toMatch(/Progressive web apps/i);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
it('should show the tutorial index page at `/tutorial/`', () => {
|
it('should show the tutorial index page at `/tutorial/`', () => {
|
||||||
// check that we can navigate directly to the tutorial page
|
// check that we can navigate directly to the tutorial page
|
||||||
@ -24,10 +23,7 @@ describe('site App', function() {
|
|||||||
page.getLink('features').click();
|
page.getLink('features').click();
|
||||||
|
|
||||||
// check that we can navigate to the tutorial page via a link in the navigation
|
// check that we can navigate to the tutorial page via a link in the navigation
|
||||||
const heading = page.getNavHeading(/tutorial/i);
|
page.getLink('tutorial').click();
|
||||||
expect(heading.getText()).toMatch(/tutorial/i);
|
|
||||||
heading.click();
|
|
||||||
page.getLink('tutorial/').click();
|
|
||||||
expect(page.getDocViewerText()).toMatch(/Tutorial: Tour of Heroes/i);
|
expect(page.getDocViewerText()).toMatch(/Tutorial: Tour of Heroes/i);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user