test: fix broken tests & change inactive time for cypress

This commit is contained in:
Dominik Biedebach
2022-05-13 14:34:53 +02:00
committed by Dominik
parent 7d25030e80
commit 483468df66
6 changed files with 17 additions and 17 deletions

View File

@@ -3,7 +3,6 @@ context('/src/Examples/Images/React/', () => {
cy.visit('/src/Examples/Images/React/')
})
// TODO: Write tests
it('finds image elements inside editor', () => {
cy.get('.ProseMirror img').should('have.length', 2)
})
@@ -19,6 +18,7 @@ context('/src/Examples/Images/React/', () => {
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('.ProseMirror img').should('have.length', 3)