gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
https://testplane.io
MIT License
687 stars 62 forks source link

fix: correctly connect to vite server from clients (worker, browser) #907

Closed DudaGod closed 4 months ago

DudaGod commented 4 months ago

What is done

If the user run browsers in the cloud, and the server is launched locally, then the user needs to launch some tunneler instance. In this case, the base url is usually substituted on tunneler url. Therefore, the worker must connect directly to the server (not use url from tunneler). And the browser should not explicitly specify the transport. Since the tunnel may not support a websocket connection.