test: fix installation tests under Node.js 24 (#36434)

This commit is contained in:
Max Schmitt 2025-06-25 11:52:57 +02:00 committed by GitHub
parent 2c78f842ce
commit 40970238b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

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

View File

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