Skip to content

Commit d36fff0

Browse files
committed
chore: fix cypress test
1 parent 47fb1e3 commit d36fff0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cypress/integration/default/appdir.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
describe('appDir', () => {
2-
it('renders appdir pages using SSR', () => {
2+
it('renders appdir pages as HTML by default', () => {
33
cy.request('/blog/erica/first-post/').then((response) => {
4-
expect(response.headers).to.have.property('x-nf-render-mode', 'ssr')
5-
expect(response.headers).to.have.property('content-type', 'text/html; charset=utf-8')
4+
expect(response.headers['content-type']).to.match(/^text\/html/)
65
})
76
})
87

@@ -13,7 +12,6 @@ describe('appDir', () => {
1312
RSC: '1',
1413
},
1514
}).then((response) => {
16-
expect(response.headers).to.have.property('x-nf-render-mode', 'ssr')
1715
expect(response.headers).to.have.property('content-type', 'application/octet-stream')
1816
})
1917
})

0 commit comments

Comments
 (0)