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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 3 additions & 3 deletions
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",

0 commit comments

Comments
 (0)