diff --git a/client/cypress/e2e/frontend/modules/highlights.cy.ts b/client/cypress/e2e/frontend/modules/highlights.cy.ts index 1b832e3e..2a648773 100644 --- a/client/cypress/e2e/frontend/modules/highlights.cy.ts +++ b/client/cypress/e2e/frontend/modules/highlights.cy.ts @@ -228,4 +228,27 @@ describe('Highlights', () => { cy.getByDataCy('highlight-note-text').should('contain.text', textPart); cy.get(`[href="${urlPart}"]`).should('exist'); }); + + it.only('visits an instrument and highlights some text', () => { + cy.mockGraphqlOps({ + operations: { + ...operations, + InstrumentQuery: { + instrument: { + title: 'My Instrument', + contents: [ + { + type: 'text_block', + value: { + text: '

Hello my beautiful World!

', + }, + }, + ], + }, + }, + }, + }); + cy.visit('/instrument/my-instrument'); + markText(); + }); });