From cba1b538e5bff8dcbe6d18b737d5495de7704b16 Mon Sep 17 00:00:00 2001 From: SPT-dev Date: Thu, 2 Mar 2023 21:12:27 -0500 Subject: [PATCH] test: Test fix CYPRESS_BASE_URL --- items/frontend/cypress.json | 3 ++- items/frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/items/frontend/cypress.json b/items/frontend/cypress.json index dcc4426..b2736b7 100644 --- a/items/frontend/cypress.json +++ b/items/frontend/cypress.json @@ -1,5 +1,6 @@ { - "baseUrl": "http://localhost:3000", + "CYPRESS_BASE_URL": "host.docker.internal", + "video": false, "integrationFolder": "src/cypress/integration", "fixtureFolder": "src/cypress/fixtures", "supportFile": "src/cypress/support/index.js", diff --git a/items/frontend/package.json b/items/frontend/package.json index cad700e..096247f 100644 --- a/items/frontend/package.json +++ b/items/frontend/package.json @@ -37,7 +37,7 @@ "build": "react-scripts build", "test:jest": "react-scripts test", "cy:start:app": "cross-env BROWSER=none react-scripts -r @cypress/instrument-cra start", - "cy:start:wait": "start-server-and-test cy:start:app http://0.0.0.0:3000", + "cy:start:wait": "start-server-and-test cy:start:app", "cy:open": "yarn run cy:start:wait -- \"cypress open\"", "cy:run": "yarn run cy:start:wait -- \"cypress run\"", "eject": "react-scripts eject"