Skip to content

Commit

Permalink
Extend e2e tests for export panel
Browse files Browse the repository at this point in the history
  • Loading branch information
t11r committed Apr 16, 2024
1 parent 5800560 commit d430d7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/e2e/export.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@ describe('Export', () => {
cy.contains('a', 'IIIF manifest');

cy.get('a[href$="/download/pdf/PPN857449303/LOG_0001.pdf"]');

cy.contains('Other Formats').next().find('a').should('have.length', 4);
});

it('hides "Other Formats" if not available', () => {
cy.visit(`/?manifest=${Cypress.env('iiifApiUrl')}/manifest/aku-pal-375`);

cy.contains('Export').click();

cy.should('not.contain', 'Other Formats');
});
});

0 comments on commit d430d7e

Please sign in to comment.