fix: point to the right cli program export (#29715)

Fixes: https://github.com/microsoft/playwright/issues/29711
This commit is contained in:
Pavel Feldman 2024-02-28 14:05:42 -08:00 committed by GitHub
parent 772345c83c
commit d48aadac7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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');
});