Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix installation tests under Node.js 24 (#36434)
Max Schmitt40970238b4af
diff --git a/tests/installation/npmTest.ts b/tests/installation/npmTest.tsindex 09849077b5..9360ce8a50 100644--- a/tests/installation/npmTest.ts+++ b/tests/installation/npmTest.ts@@ -107,6 +107,8 @@ export const test = _testconst 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')}"`);diff --git a/tests/installation/playwright-cli-install-should-work.spec.ts b/tests/installation/playwright-cli-install-should-work.spec.tsindex 9f909945a0..ebbb22adb2 100755--- a/tests/installation/playwright-cli-install-should-work.spec.ts+++ b/tests/installation/playwright-cli-install-should-work.spec.ts@@ -38,7 +38,6 @@ test('install command should work', async ({ exec, checkInstalledSoftwareOnDiskawait 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+/);