Skip to content

Commit 660afd5

Browse files
committed
test: added test to ensure content type is HTML for non-RSC requests in app dir
1 parent 5dcb098 commit 660afd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cypress/integration/default/appdir.spec.ts

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ describe('appDir', () => {
2929
})
3030
})
3131

32+
it('returns HTML data for non-RSC requests to ISR pages', () => {
33+
cy.request({
34+
url: '/blog/erica/',
35+
followRedirect: false,
36+
}).then((response) => {
37+
expect(response.headers).to.have.property('content-type', 'text/html; charset=utf-8')
38+
})
39+
})
40+
3241
it('returns RSC data for RSC requests to static pages', () => {
3342
cy.request({
3443
url: '/blog/erica/first-post/',

0 commit comments

Comments
 (0)