test: fix images test in react and collaboration annotation test

This commit is contained in:
Dominik Biedebach
2022-05-13 16:27:55 +02:00
committed by Dominik
parent 19cc6e1f28
commit 8e3c2a3b66
4 changed files with 5 additions and 6 deletions

View File

@@ -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)
})
})