mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-06 17:44:11 +00:00
20 lines
613 B
TypeScript
20 lines
613 B
TypeScript
import { ProtractorPage } from './pagenotfound.po';
|
|
|
|
describe('protractor PageNotFound', () => {
|
|
let page: ProtractorPage;
|
|
|
|
beforeEach(() => {
|
|
page = new ProtractorPage();
|
|
});
|
|
|
|
it('should contain element ds-pagenotfound when navigating to page that doesnt exist', () => {
|
|
page.navigateToNonExistingPage();
|
|
expect<any>(page.elementTagExists('ds-pagenotfound')).toEqual(true);
|
|
});
|
|
|
|
it('should not contain element ds-pagenotfound when navigating to existing page', () => {
|
|
page.navigateToExistingPage();
|
|
expect<any>(page.elementTagExists('ds-pagenotfound')).toEqual(false);
|
|
});
|
|
});
|