mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix installation tests under Node.js 24 (#36434)
This commit is contained in:
parent
2c78f842ce
commit
40970238b4
@ -107,6 +107,8 @@ export const test = _test
|
||||
const npmLines = [
|
||||
`registry = ${registry.url()}/`,
|
||||
`cache = ${testInfo.outputPath('npm_cache')}`,
|
||||
// Required after https://github.com/npm/cli/pull/8185.
|
||||
'replace-registry-host=never',
|
||||
];
|
||||
if (!allowGlobalInstall) {
|
||||
yarnLines.push(`prefix "${testInfo.outputPath('npm_global')}"`);
|
||||
|
@ -38,7 +38,6 @@ test('install command should work', async ({ exec, checkInstalledSoftwareOnDisk
|
||||
|
||||
await test.step('playwright install --list', async () => {
|
||||
const result = await exec('npx playwright install --list');
|
||||
console.log('result', result);
|
||||
expect.soft(result).toMatch(/Playwright version: \d+\.\d+/);
|
||||
expect.soft(result).toMatch(/chromium-\d+/);
|
||||
expect.soft(result).toMatch(/chromium_headless_shell-\d+/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user