test: fix images test in react and collaboration annotation test
This commit is contained in:
committed by
Dominik
parent
19cc6e1f28
commit
8e3c2a3b66
@@ -17,10 +17,7 @@ context('/src/Examples/Images/React/', () => {
|
||||
it('allows images to be added via URL', () => {
|
||||
cy.window().then(win => {
|
||||
cy.stub(win, 'prompt').returns('https://unsplash.it/250/250')
|
||||
|
||||
cy.wait(1000)
|
||||
cy.get('button').contains('add image from URL').click()
|
||||
cy.wait(1000)
|
||||
cy.get('button').contains('add image from URL').click({ force: false })
|
||||
cy.get('.ProseMirror img').should('have.length', 3)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user