From c8898de2e5078ee3396f50f2cd869e38af30710d Mon Sep 17 00:00:00 2001 From: t11r <1674104+t11r@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:53:38 +0200 Subject: [PATCH] Extend e2e tests for info panel --- tests/e2e/info.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/e2e/info.spec.js b/tests/e2e/info.spec.js index 257cd0e8..1b2662a3 100644 --- a/tests/e2e/info.spec.js +++ b/tests/e2e/info.spec.js @@ -10,6 +10,12 @@ describe('Info', () => { cy.contains('Related Resources'); cy.contains('/object/viewid/0000000001'); cy.contains('/0000000001/manifest'); + + cy.visit(`/?manifest=${Cypress.env('iiifApiUrl')}/manifest/digitale-sammlungen-bsb00026283`); + cy.contains('Info').click(); + cy.get('.tify-info-section.-related li').should('have.length', 2); + cy.get('a[href$="/details:bsb00026283"]').contains('Details'); + cy.get('a[href$="/title/BV023398264"]').contains('OPAC'); }); it('collapses long metadata values', () => {