New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wait-on times out, even tough app is ready #41
Comments
I'm running into the same issue too. I tried the alternative @rbuetzer shared but it didn't work for me as it behaved no differently than without it. It looks like their server might start up super quickly so they might not actually need the start: yarn run parcel src/index.html & npx wait-on http://localhost:1234 The above doesn't seem to behave any different than the below. start: yarn run parcel src/index.html |
You are right @JoshAntBrown, the test succeeded because the app was ready before Cypress. Leaving away Also, after another experiment, it seems, the So to update the bug description:
However, if I leave away I know |
🎉 This issue has been resolved in version 1.16.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
First of all: It's awesome to see how much effort the Cypress team invests into creating examples and bindings for all kinds of tools and services. Thank you.
Now for the issue: I have an app with the following configuration:
Full configuration: https://github.com/rbuetzer/kinder/blob/4e3ce07bf651ab5f8f9edcdeda0666d7c93c67da/.github/workflows/run-tests.yml
Observed behaviour:
wait-on times out after 60 seconds, even tough the app is ready after <30 seconds.
Full log: https://github.com/rbuetzer/kinder/runs/316750720
Expected behaviour
wait-on does not time out.
Analysis
Edit: Ignore the analysis below. Turns out the
&
variant does not work on GH pages. See #41 (comment)If I use wait-on with a background process instead of using the configuration, the test runs successfully.
Full configuration: https://github.com/rbuetzer/kinder/blob/13e239b1f055fd1e7b222f0697343d0510679085/.github/workflows/run-tests.yml
Successful run: https://github.com/rbuetzer/kinder/runs/316749597
App version which has the issue:
https://github.com/rbuetzer/kinder/tree/4e3ce07bf651ab5f8f9edcdeda0666d7c93c67da
App version which does not have the issue:
https://github.com/rbuetzer/kinder/tree/13e239b1f055fd1e7b222f0697343d0510679085
Diff between the two:
https://github.com/rbuetzer/kinder/compare/4e3ce07bf651ab5f8f9edcdeda0666d7c93c67da..13e239b1f055fd1e7b222f0697343d0510679085
The text was updated successfully, but these errors were encountered: