https://cypress.io logo
We have an issue that's completely stumped us. We...
# e2e-testing
q
We have an issue that's completely stumped us. We have a parallel test setup in Github actions, and intermittently, one of the runs will fail to render the javascript in our React app, and we'll see an "unexpected token" error, because only the bare HTML has been loaded. We can suppress the error, but the site still hasn't loaded, and all tests fail. Navigating to the site works fine, and tests targeting the same URL work fine in the other parallel runners. I've tried doing a wait-for on the server URL, and also tried a trick I saw about using the file preprocessor to give each spec file a unique ID, so they don't clobber each other during parallel runs. Neither helped. Our project is open source, so I stripped the suite down to a single test, which just renders a page and looks for some text, and I turned on Cypress debugging. You can see one failure here: https://github.com/CMSgov/managed-care-review/actions/runs/3511357230/jobs/5882398830