mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
25 lines
982 B
TypeScript
25 lines
982 B
TypeScript
describe('Item Statistics Page', () => {
|
|
const ITEMSTATISTICSPAGE = '/statistics/items/e98b0f27-5c19-49a0-960d-eb6ad5287067';
|
|
|
|
it('should contain element ds-item-statistics-page when navigating to an item statistics page', () => {
|
|
cy.visit(ITEMSTATISTICSPAGE);
|
|
cy.get('ds-item-statistics-page').should('exist');
|
|
cy.get('ds-item-page').should('not.exist');
|
|
});
|
|
|
|
it('should contain the item statistics page url when navigating to an item statistics page', () => {
|
|
cy.visit(ITEMSTATISTICSPAGE);
|
|
cy.location('pathname').should('eq', ITEMSTATISTICSPAGE);
|
|
});
|
|
|
|
it('should contain a "Total visits" section', () => {
|
|
cy.visit(ITEMSTATISTICSPAGE);
|
|
cy.get('ds-statistics-table h3').contains('Total visits');
|
|
});
|
|
|
|
it('should contain a "Total visits per month" section', () => {
|
|
cy.visit(ITEMSTATISTICSPAGE);
|
|
cy.get('ds-statistics-table h3').contains('Total visits per month');
|
|
});
|
|
});
|