test(images): fix failing tests

This commit is contained in:
svenadlung 2024-05-27 17:22:55 +02:00
parent 6050d20281
commit 7c8d21745d
4 changed files with 6 additions and 6 deletions

View File

@ -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" />
`,
})

View File

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

View File

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

View File

@ -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" />
`,
})
},