Skip to content
Snippets Groups Projects
Commit 26c2eae1 authored by Lotte Hofstede's avatar Lotte Hofstede
Browse files

38248: updated pagenotfound tests

parent 494e2c73
Branches
Tags
No related merge requests found
......@@ -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);
});
});
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment