summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/packages/browsers/src/CLI.ts
diff options
context:
space:
mode:
Diffstat (limited to 'remote/test/puppeteer/packages/browsers/src/CLI.ts')
-rw-r--r--remote/test/puppeteer/packages/browsers/src/CLI.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/remote/test/puppeteer/packages/browsers/src/CLI.ts b/remote/test/puppeteer/packages/browsers/src/CLI.ts
index 255f5545b4..281f22c9f5 100644
--- a/remote/test/puppeteer/packages/browsers/src/CLI.ts
+++ b/remote/test/puppeteer/packages/browsers/src/CLI.ts
@@ -173,6 +173,18 @@ export class CLI {
'Install the latest available build for the Chrome browser.'
);
yargs.example(
+ '$0 install chrome@stable',
+ 'Install the latest available build for the Chrome browser from the stable channel.'
+ );
+ yargs.example(
+ '$0 install chrome@beta',
+ 'Install the latest available build for the Chrome browser from the beta channel.'
+ );
+ yargs.example(
+ '$0 install chrome@dev',
+ 'Install the latest available build for the Chrome browser from the dev channel.'
+ );
+ yargs.example(
'$0 install chrome@canary',
'Install the latest available build for the Chrome Canary browser.'
);
@@ -238,6 +250,7 @@ export class CLI {
}
args.browser.buildId = pinnedVersion;
}
+ const originalBuildId = args.browser.buildId;
args.browser.buildId = await resolveBuildId(
args.browser.name,
args.platform,
@@ -253,6 +266,10 @@ export class CLI {
args.browser.buildId
),
baseUrl: args.baseUrl,
+ buildIdAlias:
+ originalBuildId !== args.browser.buildId
+ ? originalBuildId
+ : undefined,
});
console.log(
`${args.browser.name}@${