fix: point to the right cli program export (#29715)
Fixes: https://github.com/microsoft/playwright/issues/29711
This commit is contained in:
parent
772345c83c
commit
d48aadac7e
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue