Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit bcc9f73

Browse files
authored
test(e2e-tests): fix external site used in e2e tests (#1457)
1 parent cde5af9 commit bcc9f73

File tree

25 files changed

+50
-50
lines changed

25 files changed

+50
-50
lines changed

packages/e2e-tests/next-app-using-serverless-trace/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe("Redirects Tests", () => {
145145
},
146146
{
147147
path: "/external-redirect-1",
148-
expectedRedirect: "https://jsonplaceholder.typicode.com",
148+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
149149
expectedStatus: 200,
150150
expectedRedirectStatus: 308
151151
},

packages/e2e-tests/next-app-using-serverless-trace/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
},
4747
{
4848
source: "/external-redirect-1",
49-
destination: "https://jsonplaceholder.typicode.com",
49+
destination: "https://jsonplaceholder.typicode.com/users",
5050
permanent: true
5151
},
5252
{

packages/e2e-tests/next-app-windows/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe("Redirects Tests", () => {
164164
},
165165
{
166166
path: "/external-redirect-1",
167-
expectedRedirect: "https://jsonplaceholder.typicode.com",
167+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
168168
expectedStatus: 200,
169169
expectedRedirectStatus: 308
170170
},

packages/e2e-tests/next-app-windows/cypress/integration/rewrites.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,22 @@ describe("Rewrites Tests", () => {
100100
[
101101
{
102102
path: "/external-rewrite",
103-
expectedRewrite: "https://jsonplaceholder.typicode.com",
103+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
104104
method: "GET",
105105
expectedStatus: 200
106106
},
107107
{
108108
path: "/api/external-rewrite",
109-
expectedRewrite: "https://jsonplaceholder.typicode.com",
109+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
110110
method: "GET",
111111
expectedStatus: 200
112112
},
113113
{
114114
path: "/api/external-rewrite",
115-
expectedRewrite: "https://jsonplaceholder.typicode.com",
115+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
116116
method: "POST",
117117
body: '{ "hello": "world" }', // Check that body can passed to external rewrite
118-
expectedStatus: 404
118+
expectedStatus: 201
119119
},
120120
{
121121
path: "/external-rewrite-issues?page=1",

packages/e2e-tests/next-app-windows/next.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
},
5050
{
5151
source: "/external-redirect-1",
52-
destination: "https://jsonplaceholder.typicode.com",
52+
destination: "https://jsonplaceholder.typicode.com/users",
5353
permanent: true
5454
},
5555
{
@@ -121,7 +121,7 @@ module.exports = {
121121
},
122122
{
123123
source: "/external-rewrite",
124-
destination: "https://jsonplaceholder.typicode.com"
124+
destination: "https://jsonplaceholder.typicode.com/users"
125125
},
126126
{
127127
source: "/external-rewrite-issues",
@@ -133,7 +133,7 @@ module.exports = {
133133
},
134134
{
135135
source: "/api/external-rewrite",
136-
destination: "https://jsonplaceholder.typicode.com"
136+
destination: "https://jsonplaceholder.typicode.com/users"
137137
},
138138
{
139139
source: "/api/external-rewrite-issues",

packages/e2e-tests/next-app-with-base-path/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe("Redirects Tests", () => {
145145
},
146146
{
147147
path: "/basepath/external-redirect-1",
148-
expectedRedirect: "https://jsonplaceholder.typicode.com",
148+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
149149
expectedStatus: 200,
150150
expectedRedirectStatus: 308
151151
},

packages/e2e-tests/next-app-with-base-path/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
},
4848
{
4949
source: "/external-redirect-1",
50-
destination: "https://jsonplaceholder.typicode.com",
50+
destination: "https://jsonplaceholder.typicode.com/users",
5151
permanent: true
5252
},
5353
{

packages/e2e-tests/next-app-with-locales-using-serverless-trace/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe("Redirects Tests", () => {
189189
},
190190
{
191191
path: "/external-redirect-1",
192-
expectedRedirect: "https://jsonplaceholder.typicode.com",
192+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
193193
expectedStatus: 200,
194194
expectedRedirectStatus: 308
195195
},

packages/e2e-tests/next-app-with-locales-using-serverless-trace/cypress/integration/rewrites.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,22 @@ describe("Rewrites Tests", () => {
100100
[
101101
{
102102
path: "/external-rewrite",
103-
expectedRewrite: "https://jsonplaceholder.typicode.com",
103+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
104104
method: "GET",
105105
expectedStatus: 200
106106
},
107107
{
108108
path: "/api/external-rewrite",
109-
expectedRewrite: "https://jsonplaceholder.typicode.com",
109+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
110110
method: "GET",
111111
expectedStatus: 200
112112
},
113113
{
114114
path: "/api/external-rewrite",
115-
expectedRewrite: "https://jsonplaceholder.typicode.com",
115+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
116116
method: "POST",
117117
body: '{ "hello": "world" }', // Check that body can passed to external rewrite
118-
expectedStatus: 404
118+
expectedStatus: 201
119119
},
120120
{
121121
path: "/external-rewrite-issues?page=1",

packages/e2e-tests/next-app-with-locales-using-serverless-trace/next.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
},
5050
{
5151
source: "/external-redirect-1",
52-
destination: "https://jsonplaceholder.typicode.com",
52+
destination: "https://jsonplaceholder.typicode.com/users",
5353
permanent: true
5454
},
5555
{
@@ -121,7 +121,7 @@ module.exports = {
121121
},
122122
{
123123
source: "/external-rewrite",
124-
destination: "https://jsonplaceholder.typicode.com"
124+
destination: "https://jsonplaceholder.typicode.com/users"
125125
},
126126
{
127127
source: "/external-rewrite-issues",
@@ -133,7 +133,7 @@ module.exports = {
133133
},
134134
{
135135
source: "/api/external-rewrite",
136-
destination: "https://jsonplaceholder.typicode.com"
136+
destination: "https://jsonplaceholder.typicode.com/users"
137137
},
138138
{
139139
source: "/api/external-rewrite-issues",

packages/e2e-tests/next-app-with-locales/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe("Redirects Tests", () => {
189189
},
190190
{
191191
path: "/external-redirect-1",
192-
expectedRedirect: "https://jsonplaceholder.typicode.com",
192+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
193193
expectedStatus: 200,
194194
expectedRedirectStatus: 308
195195
},

packages/e2e-tests/next-app-with-locales/cypress/integration/rewrites.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ describe("Rewrites Tests", () => {
105105
[
106106
{
107107
path: "/external-rewrite",
108-
expectedRewrite: "https://jsonplaceholder.typicode.com",
108+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
109109
method: "GET",
110110
expectedStatus: 200
111111
},
112112
{
113113
path: "/api/external-rewrite",
114-
expectedRewrite: "https://jsonplaceholder.typicode.com",
114+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
115115
method: "GET",
116116
expectedStatus: 200
117117
},
118118
{
119119
path: "/api/external-rewrite",
120-
expectedRewrite: "https://jsonplaceholder.typicode.com",
120+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
121121
method: "POST",
122122
body: '{ "hello": "world" }', // Check that body can passed to external rewrite
123-
expectedStatus: 404
123+
expectedStatus: 201
124124
},
125125
{
126126
path: "/external-rewrite-issues?page=1",

packages/e2e-tests/next-app-with-locales/next.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
},
5050
{
5151
source: "/external-redirect-1",
52-
destination: "https://jsonplaceholder.typicode.com",
52+
destination: "https://jsonplaceholder.typicode.com/users",
5353
permanent: true
5454
},
5555
{
@@ -125,7 +125,7 @@ module.exports = {
125125
},
126126
{
127127
source: "/external-rewrite",
128-
destination: "https://jsonplaceholder.typicode.com"
128+
destination: "https://jsonplaceholder.typicode.com/users"
129129
},
130130
{
131131
source: "/external-rewrite-issues",
@@ -137,7 +137,7 @@ module.exports = {
137137
},
138138
{
139139
source: "/api/external-rewrite",
140-
destination: "https://jsonplaceholder.typicode.com"
140+
destination: "https://jsonplaceholder.typicode.com/users"
141141
},
142142
{
143143
source: "/api/external-rewrite-issues",

packages/e2e-tests/next-app-with-trailing-slash/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe("Redirects Tests", () => {
160160
},
161161
{
162162
path: "/external-redirect-1/",
163-
expectedRedirect: "https://jsonplaceholder.typicode.com",
163+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
164164
expectedStatus: 200,
165165
expectedRedirectStatus: 308
166166
},

packages/e2e-tests/next-app-with-trailing-slash/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
},
4949
{
5050
source: "/external-redirect-1/",
51-
destination: "https://jsonplaceholder.typicode.com",
51+
destination: "https://jsonplaceholder.typicode.com/users",
5252
permanent: true
5353
},
5454
{

packages/e2e-tests/next-app/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe("Redirects Tests", () => {
164164
},
165165
{
166166
path: "/external-redirect-1",
167-
expectedRedirect: "https://jsonplaceholder.typicode.com",
167+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
168168
expectedStatus: 200,
169169
expectedRedirectStatus: 308
170170
},

packages/e2e-tests/next-app/cypress/integration/rewrites.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ describe("Rewrites Tests", () => {
105105
[
106106
{
107107
path: "/external-rewrite",
108-
expectedRewrite: "https://jsonplaceholder.typicode.com",
108+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
109109
method: "GET",
110110
expectedStatus: 200
111111
},
112112
{
113113
path: "/api/external-rewrite",
114-
expectedRewrite: "https://jsonplaceholder.typicode.com",
114+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
115115
method: "GET",
116116
expectedStatus: 200
117117
},
118118
{
119119
path: "/api/external-rewrite",
120-
expectedRewrite: "https://jsonplaceholder.typicode.com",
120+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
121121
method: "POST",
122122
body: '{ "hello": "world" }', // Check that body can passed to external rewrite
123-
expectedStatus: 404
123+
expectedStatus: 201
124124
},
125125
{
126126
path: "/external-rewrite-issues?page=1",

packages/e2e-tests/next-app/next.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
},
5050
{
5151
source: "/external-redirect-1",
52-
destination: "https://jsonplaceholder.typicode.com",
52+
destination: "https://jsonplaceholder.typicode.com/users",
5353
permanent: true
5454
},
5555
{
@@ -121,7 +121,7 @@ module.exports = {
121121
},
122122
{
123123
source: "/external-rewrite",
124-
destination: "https://jsonplaceholder.typicode.com"
124+
destination: "https://jsonplaceholder.typicode.com/users"
125125
},
126126
{
127127
source: "/external-rewrite-issues",
@@ -133,7 +133,7 @@ module.exports = {
133133
},
134134
{
135135
source: "/api/external-rewrite",
136-
destination: "https://jsonplaceholder.typicode.com"
136+
destination: "https://jsonplaceholder.typicode.com/users"
137137
},
138138
{
139139
source: "/api/external-rewrite-issues",

packages/e2e-tests/prev-next-app-with-base-path/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe("Redirects Tests", () => {
145145
},
146146
{
147147
path: "/basepath/external-redirect-1",
148-
expectedRedirect: "https://jsonplaceholder.typicode.com",
148+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
149149
expectedStatus: 200,
150150
expectedRedirectStatus: 308
151151
},

packages/e2e-tests/prev-next-app-with-base-path/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
},
4545
{
4646
source: "/external-redirect-1",
47-
destination: "https://jsonplaceholder.typicode.com",
47+
destination: "https://jsonplaceholder.typicode.com/users",
4848
permanent: true
4949
},
5050
{

packages/e2e-tests/prev-next-app-with-trailing-slash/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe("Redirects Tests", () => {
160160
},
161161
{
162162
path: "/external-redirect-1/",
163-
expectedRedirect: "https://jsonplaceholder.typicode.com",
163+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
164164
expectedStatus: 200,
165165
expectedRedirectStatus: 308
166166
},

packages/e2e-tests/prev-next-app-with-trailing-slash/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
},
4646
{
4747
source: "/external-redirect-1/",
48-
destination: "https://jsonplaceholder.typicode.com",
48+
destination: "https://jsonplaceholder.typicode.com/users",
4949
permanent: true
5050
},
5151
{

packages/e2e-tests/prev-next-app/cypress/integration/redirects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe("Redirects Tests", () => {
164164
},
165165
{
166166
path: "/external-redirect-1",
167-
expectedRedirect: "https://jsonplaceholder.typicode.com",
167+
expectedRedirect: "https://jsonplaceholder.typicode.com/users",
168168
expectedStatus: 200,
169169
expectedRedirectStatus: 308
170170
},

packages/e2e-tests/prev-next-app/cypress/integration/rewrites.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,22 @@ describe("Rewrites Tests", () => {
100100
[
101101
{
102102
path: "/external-rewrite",
103-
expectedRewrite: "https://jsonplaceholder.typicode.com",
103+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
104104
method: "GET",
105105
expectedStatus: 200
106106
},
107107
{
108108
path: "/api/external-rewrite",
109-
expectedRewrite: "https://jsonplaceholder.typicode.com",
109+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
110110
method: "GET",
111111
expectedStatus: 200
112112
},
113113
{
114114
path: "/api/external-rewrite",
115-
expectedRewrite: "https://jsonplaceholder.typicode.com",
115+
expectedRewrite: "https://jsonplaceholder.typicode.com/users",
116116
method: "POST",
117117
body: '{ "hello": "world" }', // Check that body can passed to external rewrite
118-
expectedStatus: 404
118+
expectedStatus: 201
119119
},
120120
{
121121
path: "/external-rewrite-issues?page=1",

0 commit comments

Comments
 (0)