chore(cli): migrate dashboard to playwright protocol#40143
chore(cli): migrate dashboard to playwright protocol#40143Skn0tt wants to merge 2 commits intomicrosoft:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Why is this called cli.ts?
There was a problem hiding this comment.
renamed it to dashboardBundle.ts to align with our naming
| entryPoints: [ | ||
| filePath('packages/playwright-client/src/cli.ts'), | ||
| ], | ||
| outfile: filePath('packages/playwright-core/lib/clientBundle.js'), |
There was a problem hiding this comment.
Don't we need an entry in package.json to be able to require this?
There was a problem hiding this comment.
No, because we don't require it. We fs.readFile it.
| onclose?: (cause?: string) => void; | ||
| } | ||
|
|
||
| // this entrypoint is used between dashboard and playwright-cli. |
There was a problem hiding this comment.
- I don't think this comment is too useful. Better explain this is the entry point to the client bundle.
- Why not use
playwright.chromium.connect()? - Should we also pass a
platforminstance?
There was a problem hiding this comment.
updated the comment. we can't use playwright.chromium.connect because it won't use the browser's websocket impl. I don't think we should pass the platform instance so it's easier to maintain cross-version compatibility
fbd4c64 to
7b2512b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9a64e0c to
981d904
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"1 failed 5986 passed, 916 skipped Merge workflow run. |
Test results for "tests 1"10 flaky39173 passed, 847 skipped Merge workflow run. |
No description provided.