Test proxy is not working in Github Actions but works locally and on CircleCI with the same config #75737
Unanswered
bensampaio
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm using Playwright to test my application and I'm using the experimental test proxy for mocking server-side requests. This is working well when I run the tests in dev mode and also on CircleCI. I'm trying to move away from CircleCI to Github Actions but somehow all server-side mocks don't seem to work when running Playwright on Github Actions. So far I don't see any differences in the setup. I can't share any code because this is internal to my company.
Things I tried so far:
next.onFetch
: in Github Actions these logs are never printed.webServer.command
withnext start ...
. I tried to remove this option and start it with concurrently instead but nothing changed.Even though I have
testProxy: true
on the Next.js config it seems the proxy isn't working at all. Everything indicates that server-side requests are not being mocked/intercepted. The docs about the test proxy don't contain much information so I'm out of ideas here but would appreciate some creative ideas/suggestions. Currently, my main question is if there's any kind of logging I could enable for the test proxy? Let me know if you have any more ideas.Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions