Hi, I'm also testing an application which uses react-places-autocomplete with cypress.
The test is able to search for a city and select one of the results and it works fine in local, since it hits the real google geolocation service.
Unfortunately, it does not work in CI because it's prevented from sending requests to external services. I have been trying to stub the request for some time with little success. Any suggestions?
... TypeError: request.open is not a function at dispatchXhrRequest (.../node_modules/axios/lib/adapters/xhr.js:28:13) at new Promise (<anonymous>) at xhrAdapter (.../node_modules/axios/lib/adapters/xhr.js:11:10) at dispatchRequest (.../node_modules/axios/lib/core/dispatchRequest.js:59:10) at <anonymous> npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! firstname.lastname@example.org test: `node scripts/test.js --env=jsdom` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the email@example.com test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.