Skip to content

Commit

Permalink
Changin port e2e 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Apr 28, 2024
1 parent 4c48689 commit 9f94ba5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/steps/leaderboard.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/login-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/logout.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/normal-game.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/statistics.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/trivia-game.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defineFeature(feature, test => {
setDefaultOptions({ timeout: 10000 })

await page
.goto("http://localhost", {
.goto("http://localhost:3000", {
waitUntil: "networkidle0",
})
.catch(() => {});
Expand Down
4 changes: 2 additions & 2 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"scripts": {
"start": "set PORT=80 && set HTTP=true && react-scripts start",
"build": "set PORT=80 && set HTTP=true && react-scripts build",
"prod": "serve -s build",
"prod": "serve -s build -l 3000",
"test": "react-scripts test --transformIgnorePatterns 'node_modules/(?!axios)/'",
"test:e2e": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=80 npm run rune2etests",
"rune2etests": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 80 \"cd e2e && jest\"",
"rune2etests": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 3000 \"cd e2e && jest\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down

0 comments on commit 9f94ba5

Please sign in to comment.