Issue 1:
I cannot seem to get playwright 1.34.3 working with yarn, even on a fresh install.

I am running into issues described in #23228, but 1.34.3 did not solve them. It is exactly what @thekp describe in #23228 (comment)_

I've created a fresh install and still get this issue:

tvongaza ~/ $ mkdir playwright-test

tvongaza ~/ $ cd playwright-test

tvongaza ~/playwright-test $ yarn init
yarn init v1.22.19
question name (playwright-test):
question version (1.0.0):
question description:
question entry point (index.js):
question repository url:
question author:
question license (MIT):
question private:
success Saved package.json
✨ Done in 5.74s.

tvongaza ~/playwright-test $ yarn add playwright
yarn add v1.22.19
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ playwright@1.34.3
info All dependencies
├─ playwright-core@1.34.3
└─ playwright@1.34.3
✨ Done in 1.59s.

tvongaza ~/playwright-test $ yarn create playwright
yarn create v1.22.19
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Installed "create-playwright@1.17.127" with binaries:
- create-playwright
[###########################################################################################################################################################] 282/282Getting started with writing end-to-end tests with Playwright:
Initializing project in '.'
✔ Do you want to use TypeScript or JavaScript? · TypeScript
✔ Where to put your end-to-end tests? · tests
✔ Add a GitHub Actions workflow? (y/N) · false
✔ Install Playwright browsers (can be done manually via 'yarn playwright install')? (Y/n) · true
Installing Playwright Test (yarn add --dev @playwright/test)…
yarn add v1.22.19
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
info Direct dependencies
└─ @playwright/test@1.34.3
info All dependencies
├─ @playwright/test@1.34.3
├─ @types/node@20.2.4
└─ fsevents@2.3.2
✨ Done in 1.25s.
Downloading browsers (yarn playwright install)…
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright install
✨ Done in 0.46s.
Writing playwright.config.ts.
Writing tests/example.spec.ts.
Writing tests-examples/demo-todo-app.spec.ts.
Writing package.json.
✔ Success! Created a Playwright Test project at /Users/tvongaza/playwright-test

Inside that directory, you can run several commands:

yarn playwright test
Runs the end-to-end tests.

yarn playwright test --ui
Starts the interactive UI mode.

yarn playwright test --project=chromium
Runs the tests only on Desktop Chrome.

yarn playwright test example
Runs the tests in a specific file.

yarn playwright test --debug
Runs the tests in debug mode.

yarn playwright codegen
Auto generate tests with Codegen.

We suggest that you begin by typing:

yarn playwright test

And check out the following files:
- ./tests/example.spec.ts - Example end-to-end test
- ./tests-examples/demo-todo-app.spec.ts - Demo Todo App end-to-end tests
- ./playwright.config.ts - Playwright Test configuration

Visit https://playwright.dev/docs/intro for more information. ✨

Happy hacking! 🎭
✨ Done in 7.52s.

tvongaza ~/playwright-test $ yarn playwright test
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright test
Please install @playwright/test package to use Playwright Test.
npm install -D @playwright/test
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tvongaza ~/playwright-test $ yarn add -D @playwright/test
yarn add v1.22.19
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ @playwright/test@1.34.3
info All dependencies
└─ @playwright/test@1.34.3
✨ Done in 0.61s.

tvongaza ~/playwright-test $ yarn playwright test
yarn run v1.22.19
$ /Users/tvongaza/playwright-test/node_modules/.bin/playwright test
Please install @playwright/test package to use Playwright Test.
npm install -D @playwright/test
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tvongaza ~/playwright-test $ node -v
v19.8.1

tvongaza ~/playwright-test $ yarn -v
1.22.19

tvongaza ~/playwright-test $ yarn list --pattern playwright
yarn list v1.22.19
├─ @playwright/test@1.34.3
├─ playwright-core@1.34.3
└─ playwright@1.34.3
✨ Done in 0.04s.

Issue 2:
System info

Playwright Version: [1.34.3]

Operating System: [MacOS Ventura - Version 13.4]

Browser: [All, Chromium, Firefox, WebKit]

Other info:

$ node -v
v19.4.0

$ yarn -v
1.22.19

$ yarn list --pattern @playwright/test
yarn list v1.22.19
└─ @playwright/test@1.34.3

Additional notes:

I get this problem when I created a new playwright project with yarn create playwright