Skip to content

Commit d48aada

Browse files
authored
fix: point to the right cli program export (#29715)
Fixes: #29711
1 parent 772345c commit d48aada

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

packages/playwright-chromium/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
* limitations under the License.
1616
*/
1717

18-
const { program } = require('playwright-core/lib/program');
18+
const { program } = require('playwright-core/lib/cli/program');
1919
program.parse(process.argv);

packages/playwright-firefox/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
* limitations under the License.
1616
*/
1717

18-
const { program } = require('playwright-core/lib/program');
18+
const { program } = require('playwright-core/lib/cli/program');
1919
program.parse(process.argv);

packages/playwright-webkit/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
* limitations under the License.
1616
*/
1717

18-
const { program } = require('playwright-core/lib/program');
18+
const { program } = require('playwright-core/lib/cli/program');
1919
program.parse(process.argv);

tests/installation/playwright-cli-install-should-work.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,9 @@ test('subsequent installs works', async ({ exec }) => {
8989
// of UnhandledPromiseRejection.
9090
await exec('node --unhandled-rejections=strict', path.join('node_modules', '@playwright', 'browser-chromium', 'install.js'));
9191
});
92+
93+
test('install playwright-chromium should work', async ({ exec, installedSoftwareOnDisk }) => {
94+
await exec('npm i playwright-chromium');
95+
await exec('npx playwright install chromium');
96+
await exec('node sanity.js playwright-chromium chromium');
97+
});

0 commit comments

Comments
 (0)