waitForExtension in cli session new command
This commit is contained in:
@@ -182,8 +182,13 @@ cli
|
||||
.action(async (options: { host?: string; browser?: string }) => {
|
||||
if (!options.host && !process.env.PLAYWRITER_HOST) {
|
||||
await ensureRelayServer({ logger: console, env: cliRelayEnv })
|
||||
await waitForExtension({
|
||||
timeoutMs: 3000,
|
||||
logger: console,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const extensions = await fetchExtensionsStatus(options.host)
|
||||
if (extensions.length === 0) {
|
||||
console.error('No connected browsers detected. Click the Playwriter extension icon.')
|
||||
|
||||
Reference in New Issue
Block a user