playwright/packages/playwright-test/src/plugins
Andrey Lushnikov 8538f61a72
feat(containers): implement global network tethering for playwright server (#17719)
This patch implements a new mode of network tethering for Playwright
server & its clients.
With this patch:
- playwright server could be launched with the
`--browser-proxy-mode=tether` flag to engage in the new mode
- a new type of client, "Network Tethering Client" can connect to the
server to provide network traffic to the browsers
- all clients that connect to the server with the `x-playwright-proxy:
*` header will get traffic from the "Network Tethering Client"

This patch also adds an environment variable
`PW_OWNED_BY_TETHER_CLIENT`. With this env, playwright server will
auto-close when the network tethering client disconnects. It will also
auto-close if the network client does not connect to the server in the
first 10 seconds of the server existence. This way we can ensure that
`npx playwright docker start` blocks terminal & controls the lifetime of
the started container.
2022-11-03 13:47:51 -07:00
..
DEPS.list chore: use plugin story for components (#13717) 2022-04-25 10:40:58 -07:00
dockerPlugin.ts feat(containers): implement global network tethering for playwright server (#17719) 2022-11-03 13:47:51 -07:00
gitCommitInfoPlugin.ts chore: hide plugins for now (#13908) 2022-05-03 14:25:56 -07:00
index.ts fix(docker): do not pollute stdout when used with JSON reporter (#17315) 2022-09-13 17:05:37 -07:00
vitePlugin.ts fix(ct): vite base url (#17767) 2022-10-31 12:58:07 -07:00
webServerPlugin.ts feat: send SIGTERM to webserver before SIGKILL'ing it. (#18220) 2022-10-21 08:55:06 -07:00