Replies: 9 comments
-
The config in your base URL is different. It will also be helpful to provide a runnable reproduction. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the quick answer, but I can't create a runnable reproduction. |
Beta Was this translation helpful? Give feedback.
-
And After I changed the Cypress baseURL it's still give's me the same issue. |
Beta Was this translation helpful? Give feedback.
-
Any reason you're trying to run the project in Docker? Also, can you share why you are using cypress/included:5.0.0? |
Beta Was this translation helpful? Give feedback.
-
@HackPoint Is your local app (the one you are testing) running also in a docker container? @amirrustam I faced the same issue, but found that since I was hitting a dockerized app and api, I had to set my baseUrl and apiBaseUrl params to "http://webapp/" and "http://api" respectively, instead of localhost:4001 and localhost:3000, and run my dockerized Cypress with the param --network AppNetwork (which is the docker network my app and api are using)
http://webapp and http://api are the url's that docker exposes through the AppNetwork |
Beta Was this translation helpful? Give feedback.
-
@HackPoint was @jprealini's suggestion helpful? |
Beta Was this translation helpful? Give feedback.
-
@amirrustam Just a quick update here... Even though I was able to make Cypress run like that, and it opens the dockerized app correctly, I am facing a different issue now, which I suppose is related to the CORS request limitation (referenced here cypress-io/cypress#944 ). Basically, since my api is in a different superdomain, requests made from the app in Cypress never resolve |
Beta Was this translation helpful? Give feedback.
-
No 😢 |
Beta Was this translation helpful? Give feedback.
-
Example: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My Error:
My docker-compose
My config
Beta Was this translation helpful? Give feedback.
All reactions