diff --git a/cypress/e2e/directediting.spec.js b/cypress/e2e/directediting.spec.js index 0b3d633dd8e..0eee92172c9 100644 --- a/cypress/e2e/directediting.spec.js +++ b/cypress/e2e/directediting.spec.js @@ -8,7 +8,7 @@ import { initUserAndFiles, randUser } from '../utils/index.js' const user = randUser() /** - * + * Enter content and close */ function enterContentAndClose() { cy.intercept({ method: 'POST', url: '**/session/*/close' }).as('closeRequest') diff --git a/cypress/e2e/nodes/Links.spec.js b/cypress/e2e/nodes/Links.spec.js index 0f24e27693b..13d6db365e6 100644 --- a/cypress/e2e/nodes/Links.spec.js +++ b/cypress/e2e/nodes/Links.spec.js @@ -27,6 +27,12 @@ describe('test link marks', function() { describe('link bubble', function() { + /** + * Find link and click on it + * + * @param {string} link The link URL + * @param {object|null} options the click options + */ const clickLink = (link, options = {}) => { cy.getContent() .find(`a[href*="${link}"]`) diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 18c3fc3192b..4f89b64bbea 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -93,7 +93,7 @@ import { import ReadonlyBar from './Menu/ReadonlyBar.vue' import { logger } from '../helpers/logger.js' -import { getDocumentState, applyDocumentState } from '../helpers/yjs.js' +import { getDocumentState } from '../helpers/yjs.js' import { SyncService, ERROR_TYPE, IDLE_TIMEOUT } from './../services/SyncService.js' import SessionApi from '../services/SessionApi.js' import createSyncServiceProvider from './../services/SyncServiceProvider.js'