Skip to content

Commit

Permalink
fix: point to the right cli program export
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Feb 28, 2024
1 parent 772345c commit 374b80b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/playwright-chromium/cli.js
Expand Up @@ -15,5 +15,5 @@
* limitations under the License.
*/

const { program } = require('playwright-core/lib/program');
const { program } = require('playwright-core/lib/cli/program');
program.parse(process.argv);
2 changes: 1 addition & 1 deletion packages/playwright-firefox/cli.js
Expand Up @@ -15,5 +15,5 @@
* limitations under the License.
*/

const { program } = require('playwright-core/lib/program');
const { program } = require('playwright-core/lib/cli/program');
program.parse(process.argv);
2 changes: 1 addition & 1 deletion packages/playwright-webkit/cli.js
Expand Up @@ -15,5 +15,5 @@
* limitations under the License.
*/

const { program } = require('playwright-core/lib/program');
const { program } = require('playwright-core/lib/cli/program');
program.parse(process.argv);
6 changes: 6 additions & 0 deletions tests/installation/playwright-cli-install-should-work.spec.ts
Expand Up @@ -89,3 +89,9 @@ test('subsequent installs works', async ({ exec }) => {
// of UnhandledPromiseRejection.
await exec('node --unhandled-rejections=strict', path.join('node_modules', '@playwright', 'browser-chromium', 'install.js'));
});

test('install playwright-chromium should work', async ({ exec, installedSoftwareOnDisk }) => {
await exec('npm i playwright-chromium');
await exec('npx playwright install chromium');
await exec('node sanity.js playwright-chromium chromium');
});

0 comments on commit 374b80b

Please sign in to comment.