test: fix broken tests & change inactive time for cypress
This commit is contained in:
committed by
Dominik
parent
7d25030e80
commit
483468df66
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user