diff --git a/packages/volto/cypress/tests/core/volto-slate/06-block-slate-format-link.js b/packages/volto/cypress/tests/core/volto-slate/06-block-slate-format-link.js index b34867f541..8e7519ee61 100644 --- a/packages/volto/cypress/tests/core/volto-slate/06-block-slate-format-link.js +++ b/packages/volto/cypress/tests/core/volto-slate/06-block-slate-format-link.js @@ -100,7 +100,7 @@ describe('Block Tests: Links', () => { it('As editor I can add a link and pressing enter does not add another link in the next block', function () { // https://github.com/plone/volto/pull/5186 cy.get('#toolbar').click(); - cy.getSlate().type('Colorless green ideas sleep furiously'); + cy.getSlateEditorAndType('Colorless green ideas sleep furiously'); cy.log('Create a Link'); @@ -111,8 +111,8 @@ describe('Block Tests: Links', () => { 'https://google.com{enter}', ); cy.getSlate().should('have.descendants', 'a.slate-editor-link'); - cy.getSlate().type('{rightarrow}').type('{enter}'); - cy.getSlate().type('Hello').type('{enter}'); + cy.getSlateEditorAndType('{rightarrow}').type('{enter}'); + cy.getSlateEditorAndType('Hello').type('{enter}'); cy.toolbarSave();