Skip to content

Commit

Permalink
Commented out the item statistics menu test
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Jan 30, 2024
1 parent ae56200 commit 67977e6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cypress/e2e/item-statistics.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { testA11y } from 'cypress/support/utils';
describe('Item Statistics Page', () => {
const ITEMSTATISTICSPAGE = '/statistics/items/'.concat(TEST_ENTITY_PUBLICATION);

it('should load if you click on "Statistics" from an Item/Entity page', () => {
cy.visit('/entities/publication/'.concat(TEST_ENTITY_PUBLICATION));
cy.get('ds-navbar ds-link-menu-item a[title="Statistics"]').click();
cy.location('pathname').should('eq', ITEMSTATISTICSPAGE);
});
// NOTE add statistics to the navbar and change this test
// it('should load if you click on "Statistics" from an Item/Entity page', () => {
// cy.visit('/entities/publication/'.concat(TEST_ENTITY_PUBLICATION));
// cy.get('ds-navbar ds-link-menu-item a[title="Statistics"]').click();
// cy.location('pathname').should('eq', ITEMSTATISTICSPAGE);
// });

it('should contain element ds-item-statistics-page when navigating to an item statistics page', () => {
cy.visit(ITEMSTATISTICSPAGE);
Expand Down

0 comments on commit 67977e6

Please sign in to comment.