diff --git a/e2e/pagenotfound/pagenotfound.e2e-spec.ts b/e2e/pagenotfound/pagenotfound.e2e-spec.ts index c09676b564..7ef3656fe6 100644 --- a/e2e/pagenotfound/pagenotfound.e2e-spec.ts +++ b/e2e/pagenotfound/pagenotfound.e2e-spec.ts @@ -8,12 +8,12 @@ describe('protractor PageNotFound', function() { }); it('should contain element ds-pagenotfound when navigating to page that doesnt exist"', () => { - page.navigateToRandomPage(); + page.navigateToNonExistingPage(); expect(page.elementTagExists("ds-pagenotfound")).toEqual(true); }); - it('should contain element ds-home when navigating to /home"', () => { - page.navigateToHomePage(); - expect(page.elementTagExists("ds-home")).toEqual(true); + it('should not contain element ds-pagenotfound when navigating to existing page"', () => { + page.navigateToExistingPage(); + expect(page.elementTagExists("ds-pagenotfound")).toEqual(false); }); }); diff --git a/e2e/pagenotfound/pagenotfound.po.ts b/e2e/pagenotfound/pagenotfound.po.ts index f719a18f9e..12ec7d891e 100644 --- a/e2e/pagenotfound/pagenotfound.po.ts +++ b/e2e/pagenotfound/pagenotfound.po.ts @@ -4,10 +4,10 @@ export class ProtractorPage { HOMEPAGE : string = "/home"; NONEXISTINGPAGE : string = "/e9019a69-d4f1-4773-b6a3-bd362caa46f2"; - navigateToRandomPage() { + navigateToNonExistingPage() { return browser.get(this.NONEXISTINGPAGE); } - navigateToHomePage() { + navigateToExistingPage() { return browser.get(this.HOMEPAGE); }