mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13: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:
15
cypress/integration/item-page.spec.ts
Normal file
15
cypress/integration/item-page.spec.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
describe('Item Page', () => {
|
||||
const ITEMPAGE = '/items/e98b0f27-5c19-49a0-960d-eb6ad5287067';
|
||||
const ENTITYPAGE = '/entities/publication/e98b0f27-5c19-49a0-960d-eb6ad5287067';
|
||||
|
||||
it('should contain element ds-item-page when navigating to an item page', () => {
|
||||
cy.visit(ENTITYPAGE);
|
||||
cy.get('ds-item-page').should('exist');
|
||||
});
|
||||
|
||||
// Test that entities will redirect to /entities/[type]/[uuid] when accessed via /items/[uuid]
|
||||
it('should redirect to the entity page when navigating to an item page', () => {
|
||||
cy.visit(ITEMPAGE);
|
||||
cy.location('pathname').should('eq', ENTITYPAGE);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user