defaults to force: true for type and click

This commit is contained in:
Philipp Kühn
2020-09-15 09:03:08 +02:00
parent 71cc626b0a
commit 00506e359b
14 changed files with 94 additions and 63 deletions

View File

@@ -12,7 +12,7 @@ context('/api/extensions/strike', () => {
it('the button should strike the selected text', () => {
cy.get('.demo__preview button:first')
.click({ force: true })
.click()
cy.get('.ProseMirror')
.find('s')
@@ -21,13 +21,13 @@ context('/api/extensions/strike', () => {
it('the button should toggle the selected text striked', () => {
cy.get('.demo__preview button:first')
.click({ force: true })
.click()
cy.get('.ProseMirror')
.type('{selectall}', { force: true })
.type('{selectall}')
cy.get('.demo__preview button:first')
.click({ force: true })
.click()
cy.get('.ProseMirror')
.find('s')
@@ -51,7 +51,7 @@ context('/api/extensions/strike', () => {
it('should make a striked text from the markdown shortcut', () => {
cy.get('.ProseMirror')
.type('~Strike~', { force: true })
.type('~Strike~')
.find('s')
.should('contain', 'Strike')
})