Skip to content

Commit

Permalink
modify cypress test and commands file
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelaCretu11 committed Oct 2, 2023
1 parent 8f30712 commit 02da258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/01-slate-footnote-block.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 02da258

Please sign in to comment.