Skip to content

Commit

Permalink
Merge pull request #3267 from nextcloud/backport/3266/stable25
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Oct 18, 2022
2 parents 78000f1 + d02cf93 commit d2f3dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/mentions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
6 changes: 4 additions & 2 deletions cypress/e2e/sections.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')
Expand Down

0 comments on commit d2f3dda

Please sign in to comment.