Skip to content

Commit cf996a9

Browse files
authored
Upgrade Mirador to version 4 (#67)
replaces both Mirador 3 and the customized Mirador 2 previously used for palimpsests
1 parent 9727a22 commit cf996a9

File tree

6 files changed

+3472
-713
lines changed

6 files changed

+3472
-713
lines changed

cypress/e2e/mirador4.spec.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
describe('With the `viewer=mirador4` parameter set', () => {
2+
const URL_PARAMETERS = `?viewer=mirador4&manifest=${encodeURIComponent('https://iiif.library.ucla.edu/ark%3A%2F21198%2Fz18w4z1w/manifest')}`
3+
4+
it('loads in Mirador', () => {
5+
// http://localhost:8080/?site=sinai&manifest=https%3A%2F%2Fiiif.library.ucla.edu%2Fark%253A%252F21198%252Fz18w4z1w%2Fmanifest
6+
cy.visit('/' + URL_PARAMETERS)
7+
8+
cy.get('.mirador-viewer').should('exist').should('be.visible')
9+
10+
// Image tools loaded
11+
cy.get('[aria-label="Expand image tools"]').should('exist').should('be.visible')
12+
13+
// Annotations plugin loaded
14+
cy.get('button[aria-label="Annotations"]').should('exist').should('be.visible')
15+
16+
// index panel open on load
17+
cy.get('.mirador-companion-area-left')
18+
.contains('h3', 'Index')
19+
.should('exist')
20+
.should('be.visible')
21+
22+
// close window button is present
23+
cy.get('button[aria-label="Close window"').should('exist').should('be.visible')
24+
})
25+
})

0 commit comments

Comments
 (0)