diff --git a/cypress/e2e/01-slate-footnote-block.cy.js b/cypress/e2e/01-slate-footnote-block.cy.js index bc02d38..65ec2d6 100644 --- a/cypress/e2e/01-slate-footnote-block.cy.js +++ b/cypress/e2e/01-slate-footnote-block.cy.js @@ -13,7 +13,7 @@ describe('Slate citations', () => { cy.getSlate().dblclick({force: true}); // Footnote - cy.setSlateCursor('Colorless').dblclick(); + cy.setSlateCursor('Colorless').dblclick({force: true}); cy.setSlateSelection('Colorless', 'green'); cy.clickSlateButton('Footnote'); @@ -54,7 +54,7 @@ describe('Slate citations', () => { cy.getSlate().dblclick({force: true}); // Footnote - cy.setSlateCursor('Colorless').dblclick(); + cy.setSlateCursor('Colorless').dblclick({force: true}); cy.setSlateSelection('Colorless', 'green'); cy.clickSlateButton('Footnote'); diff --git a/cypress/support/commands.js b/cypress/support/commands.js index d57e96c..ed68b84 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -431,7 +431,7 @@ Cypress.Commands.add('getSlateEditorAndType', (type) => { Cypress.Commands.add('setSlateCursor', (subject, query, endQuery) => { cy.get('.slate-editor.selected [contenteditable=true]') .focus() - .click() + .click({force: true}) .setCursor(subject, query, endQuery) .wait(1000); });