playwright/packages/playwright-core/src/utils
Andrey Lushnikov a87794dae6
fix: demand --force to re-install stable browser channels (#13200)
This patch will check if browser channel is already installed.
If it is, it'll abort installation with the following error:

```
aslushnikov:~/prog/playwright$ npx playwright install msedge
Failed to install browsers
Error:
╔═════════════════════════════════════════════════════════════════╗
║ ATTENTION: "msedge" is already installed on the system!         ║
║                                                                 ║
║ "msedge" installation is not hermetic; installing newer version ║
║ requires *removal* of a current installation first.             ║
║                                                                 ║
║ To *uninstall* current version and re-install latest "msedge":  ║
║                                                                 ║
║ - Close all running instances of "msedge", if any               ║
║ - Use "--force" to install browser:                             ║
║                                                                 ║
║     npx playwright install --force msedge                       ║
║                                                                 ║
║ <3 Playwright Team                                              ║
╚═════════════════════════════════════════════════════════════════╝
```

To re-install browser channel, use `--force`.

Fixes https://github.com/microsoft/playwright/issues/13061
2022-04-01 10:05:53 -07:00
..
async.ts reland(hooks): separate test timeout from beforeAll/afterAll timeouts (#12609) 2022-03-08 19:05:23 -08:00
browserFetcher.ts chore: add browser like UA to browser fetcher (#11006) 2022-01-14 02:46:17 -08:00
comparators.ts fix: allow toMatchSnapshot to use text comparator for text data (#12934) 2022-03-21 16:42:21 -07:00
debugLogger.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
dependencies.ts feat: detect docker version and Playwright version mismatch (#12806) 2022-03-25 14:45:53 -07:00
errors.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
eventsHelper.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
httpServer.ts chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00
multimap.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
nativeDeps.ts fix(firefox): add missing dependency on Ubuntu 18.04 (#12625) 2022-03-09 11:21:15 -08:00
netUtils.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
processLauncher.ts fix: do not show taskkill.exe output (#10244) 2021-11-11 18:32:22 +01:00
registry.ts fix: demand --force to re-install stable browser channels (#13200) 2022-04-01 10:05:53 -07:00
socksProxy.ts chore: intercept socks proxy in the driver (#12021) 2022-02-13 14:03:47 -08:00
stackTrace.ts fix: properly define apiName for web-first assertions (#12706) 2022-03-14 18:01:13 -07:00
stringUtils.ts feat(locator.withText): allow narrowing locators to those with text (#10688) 2021-12-03 09:27:06 -08:00
timeoutSettings.ts chore: do not stall on actions when test timeout is 0 (#12418) 2022-03-01 13:43:38 -08:00
ubuntuVersion.ts chore: add browser like UA to browser fetcher (#11006) 2022-01-14 02:46:17 -08:00
utils.ts fix: demand --force to re-install stable browser channels (#13200) 2022-04-01 10:05:53 -07:00
verifyNodeJsVersion.ts chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00
vfs.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
zones.ts chore(zones): prepare to remove wrapApiCall, introduce zones (#10427) 2021-11-18 22:30:09 -08:00