mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
38248: updated pagenotfound tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user