mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-19 06:43:02 +08:00
test(images): fix failing tests
This commit is contained in:
parent
6050d20281
commit
7c8d21745d
@ -19,8 +19,8 @@ export default () => {
|
||||
],
|
||||
content: `
|
||||
<p>This is a basic example of implementing images. Drag to re-order.</p>
|
||||
<img src="https://source.unsplash.com/8xznAGy4HcY/800x400" />
|
||||
<img src="https://source.unsplash.com/K9QHL52rE2k/800x400" />
|
||||
<img src="https://placehold.co/600x400" />
|
||||
<img src="https://placehold.co/800x400" />
|
||||
`,
|
||||
})
|
||||
|
||||
|
@ -16,7 +16,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.stub(win, 'prompt').returns('https://placehold.co/400x400')
|
||||
|
||||
cy.wait(1000)
|
||||
cy.get('button').contains('add image from URL').click({ force: false })
|
||||
|
@ -17,7 +17,7 @@ context('/src/Examples/Images/Vue/', () => {
|
||||
|
||||
it('allows images to be added via URL', () => {
|
||||
cy.window().then(win => {
|
||||
cy.stub(win, 'prompt').returns('https://unsplash.it/250/250')
|
||||
cy.stub(win, 'prompt').returns('https://placehold.co/400x400')
|
||||
|
||||
cy.wait(1000)
|
||||
cy.get('button').contains('add image from URL').click({ force: false })
|
||||
|
@ -45,8 +45,8 @@ export default {
|
||||
],
|
||||
content: `
|
||||
<p>This is a basic example of implementing images. Drag to re-order.</p>
|
||||
<img src="https://source.unsplash.com/8xznAGy4HcY/800x400" />
|
||||
<img src="https://source.unsplash.com/K9QHL52rE2k/800x400" />
|
||||
<img src="https://placehold.co/600x400" />
|
||||
<img src="https://placehold.co/800x400" />
|
||||
`,
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user