diff --git a/cypress/e2e/mentions.spec.js b/cypress/e2e/mentions.spec.js index b3fd6615b71..aecc5897821 100644 --- a/cypress/e2e/mentions.spec.js +++ b/cypress/e2e/mentions.spec.js @@ -81,10 +81,10 @@ describe('Test mentioning users', () => { }) }) - it(' Open a document with an existing mention and properly see the user bubble rendered', () => { + it('Open a document with an existing mention and properly see the user bubble rendered', () => { const mentionFilename = 'mention.md' createFileWithMention(mentionFilename, randUser1) - cy.openFile(mentionFilename) + cy.openFile(mentionFilename, { force: true }) cy.get('.text-editor__content div[contenteditable="true"] span.mention') .contains(randUser1) .should('be.visible') diff --git a/cypress/e2e/sections.spec.js b/cypress/e2e/sections.spec.js index 8b2b2f47c57..21bd7d4cd37 100644 --- a/cypress/e2e/sections.spec.js +++ b/cypress/e2e/sections.spec.js @@ -101,12 +101,14 @@ describe('Content Sections', () => { .type('{moveToStart}\n{moveToStart}# top \n') .type('lorem ipsum \n'.repeat(25)) .type('{moveToEnd}\n') - .find('h1#top') + + cy.getContent().find('h1#top') .should('not.be.inViewport') + // Click link and test view moved to anchor cy.getContent() .find('a:not(.heading-anchor)') - .click() + .click({ force: true }) .then(() => { cy.getContent() .get('h1[id="top"]')