mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
Replace Protrator e2e tests with Cypress. Move all existing tests to Cypress & add basic Deque Axe integration.
This commit is contained in:
12
cypress/integration/pagenotfound.spec.ts
Normal file
12
cypress/integration/pagenotfound.spec.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
describe('PageNotFound', () => {
|
||||
it('should contain element ds-pagenotfound when navigating to page that doesnt exist', () => {
|
||||
cy.visit('/e9019a69-d4f1-4773-b6a3-bd362caa46f2');
|
||||
cy.get('ds-pagenotfound').should('exist');
|
||||
});
|
||||
|
||||
it('should not contain element ds-pagenotfound when navigating to existing page', () => {
|
||||
cy.visit('/home');
|
||||
cy.get('ds-pagenotfound').should('not.exist');
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user