We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6da578a commit 3d516e4Copy full SHA for 3d516e4
cypress/integration/default/images.spec.ts
@@ -28,10 +28,10 @@ describe('next/images', () => {
28
})
29
30
it('should show throw if an image is not on the domains or remotePatterns allowlist', () => {
31
- cy.request('/broken-image').then((response) => {
32
- expect(response.status).to.eq(500)
+ cy.request({ url: '/broken-image', failOnStatusCode: false }).then((response) => {
+ expect(response.status).to.be.eq(500)
33
expect(response.body).to.include(
34
- 'hostname "broken-domain" is not configured under images in your `next.config.js`',
+ `Invalid src prop (https://broken-domain/netlify/next-runtime/main/next-on-netlify.png)`,
35
)
36
37
0 commit comments