File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
cypress/integration/default Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
describe ( 'appDir' , ( ) => {
2
- it ( 'renders appdir pages using SSR ' , ( ) => {
2
+ it ( 'renders appdir pages as HTML by default ' , ( ) => {
3
3
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 ( / ^ t e x t \/ h t m l / )
6
5
} )
7
6
} )
8
7
@@ -13,7 +12,6 @@ describe('appDir', () => {
13
12
RSC : '1' ,
14
13
} ,
15
14
} ) . then ( ( response ) => {
16
- expect ( response . headers ) . to . have . property ( 'x-nf-render-mode' , 'ssr' )
17
15
expect ( response . headers ) . to . have . property ( 'content-type' , 'application/octet-stream' )
18
16
} )
19
17
} )
You can’t perform that action at this time.
0 commit comments