@@ -16,7 +16,7 @@ describe('Static Routing', () => {
16
16
it ( 'renders correct page via ODB on a static route' , ( ) => {
17
17
cy . request ( '/getStaticProps/with-revalidate/' ) . then ( ( res ) => {
18
18
expect ( res . status ) . to . eq ( 200 )
19
- expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'isr ' )
19
+ expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'odb ttl=60 ' )
20
20
expect ( res . body ) . to . contain ( 'Dancing with the Stars' )
21
21
} )
22
22
} )
@@ -84,7 +84,7 @@ describe('Dynamic Routing', () => {
84
84
it ( 'renders correct page via ODB on a prerendered dynamic route with revalidate and fallback: false' , ( ) => {
85
85
cy . request ( '/getStaticProps/withRevalidate/1/' ) . then ( ( res ) => {
86
86
expect ( res . status ) . to . eq ( 200 )
87
- expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'isr ' )
87
+ expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'odb ttl=60 ' )
88
88
expect ( res . body ) . to . contain ( 'Under the Dome' )
89
89
} )
90
90
} )
@@ -98,29 +98,29 @@ describe('Dynamic Routing', () => {
98
98
it ( 'renders correct page via ODB on a prerendered dynamic route with revalidate and fallback: true' , ( ) => {
99
99
cy . request ( '/getStaticProps/withRevalidate/withFallback/1/' ) . then ( ( res ) => {
100
100
expect ( res . status ) . to . eq ( 200 )
101
- expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'isr ' )
101
+ expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'odb ttl=60 ' )
102
102
expect ( res . body ) . to . contain ( 'Under the Dome' )
103
103
} )
104
104
} )
105
105
it ( 'renders fallback page via ODB on a non-prerendered dynamic route with revalidate and fallback: true' , ( ) => {
106
106
cy . request ( '/getStaticProps/withRevalidate/withFallback/3/' ) . then ( ( res ) => {
107
107
expect ( res . status ) . to . eq ( 200 )
108
- expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'isr ' )
108
+ expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'odb ttl=60 ' )
109
109
// expect 'Bitten' until https://github.com/netlify/pillar-runtime/issues/438 is fixed
110
110
expect ( res . body ) . to . contain ( 'Bitten' )
111
111
} )
112
112
} )
113
113
it ( 'renders correct page via ODB on a prerendered dynamic route with revalidate and fallback: blocking' , ( ) => {
114
114
cy . request ( '/getStaticProps/withRevalidate/withFallbackBlocking/1/' ) . then ( ( res ) => {
115
115
expect ( res . status ) . to . eq ( 200 )
116
- expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'isr ' )
116
+ expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'odb ttl=60 ' )
117
117
expect ( res . body ) . to . contain ( 'Under the Dome' )
118
118
} )
119
119
} )
120
120
it ( 'renders correct page via ODB on a non-prerendered dynamic route with revalidate and fallback: blocking' , ( ) => {
121
121
cy . request ( '/getStaticProps/withRevalidate/withFallbackBlocking/3/' ) . then ( ( res ) => {
122
122
expect ( res . status ) . to . eq ( 200 )
123
- expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'isr ' )
123
+ expect ( res . headers ) . to . have . property ( 'x-render-mode' , 'odb ttl=60 ' )
124
124
expect ( res . body ) . to . contain ( 'Bitten' )
125
125
} )
126
126
} )
0 commit comments