in the playwright.config.js
connection to healenium proxy:
connectOptions: {
// wsEndpoint: process.env.PLAYWRIGHT_SERVER_URL || 'ws://localhost:5000',
wsEndpoint: process.env.PLAYWRIGHT_SERVER_URL || 'ws://localhost:8080/playwright-proxy',
timeout: 600000, // 60 seconds for WebSocket connection timeout
},
npm install
Check healenium docker-compose. If playwright server is not with playwright-proxy, then run it separately
npx -y playwright run-server --port 5000
connection to the proxy is configured in the 'playwright.config.js'
npx playwright test tests/test-env/page-api/css.spec.js