fix tests

This commit is contained in:
Philipp Kühn
2021-02-03 18:36:54 +01:00
parent 35f1717b44
commit ca961cc187
18 changed files with 51 additions and 51 deletions

View File

@@ -32,7 +32,7 @@ context('/demos/Marks/Italic', () => {
})
it('the button should make the selected text italic', () => {
cy.get('.demo__preview button:first')
cy.get('button:first')
.click()
cy.get('.ProseMirror')
@@ -41,13 +41,13 @@ context('/demos/Marks/Italic', () => {
})
it('the button should toggle the selected text italic', () => {
cy.get('.demo__preview button:first')
cy.get('button:first')
.click()
cy.get('.ProseMirror')
.type('{selectall}')
cy.get('.demo__preview button:first')
cy.get('button:first')
.click()
cy.get('.ProseMirror em')