-
Notifications
You must be signed in to change notification settings - Fork 5k
chore: support config in cli #38947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: support config in cli #38947
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
62f06e5 to
26fdc09
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
26fdc09 to
fa9d60d
Compare
This comment has been minimized.
This comment has been minimized.
fa9d60d to
7cdfc0c
Compare
7cdfc0c to
58e552b
Compare
Test results for "tests 1"3 failed 1 flaky33892 passed, 691 skipped Merge workflow run. |
Test results for "MCP"33 failed 3169 passed, 360 skipped Merge workflow run. |
| console.log(`Deleted user data for session '${sessionName}'.`); | ||
| break; | ||
| } catch (e: any) { | ||
| await new Promise(resolve => setTimeout(resolve, 1000)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this after line 170?
|
|
||
| try { | ||
| if (fs.existsSync(path.resolve(process.cwd(), 'playwright-cli.json'))) | ||
| return path.resolve(process.cwd(), 'playwright-cli.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do path.resolve(process.cwd(), 'playwright-cli.json'); only once?
| return `\\\\.\\pipe\\${installationDirHash}-${socketName}`; | ||
| if (process.env.PLAYWRIGHT_DAEMON_SOCKET_DIR) | ||
| return path.join(process.env.PLAYWRIGHT_DAEMON_SOCKET_DIR, socketName); | ||
| return path.join(os.tmpdir(), 'playwright-cli', installationDirHash, socketName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about already running daemons with old socket path, just leak?
| ...this.config.browser.launchOptions, | ||
| handleSIGINT: false, | ||
| handleSIGTERM: false, | ||
| ...(options.forceHeadless !== undefined ? { headless: options.forceHeadless === 'headless' } : {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does launching headed mode still work when there is an existing headless session?
Fixes: microsoft/playwright-cli#209
Fixes: microsoft/playwright-cli#210