Issue 1:
System info

System:

OS: Windows 10 10.0.19045

CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz

Memory: 5.57 GB / 15.85 GB

Binaries:

Node: 16.18.0 - C:\Program Files\nodejs\node.EXE

Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD

npm: 8.10.0 - C:\Program Files\nodejs\npm.CMD

Browsers:

Edge: Spartan (44.19041.1266.0), Chromium (113.0.1774.50)

Internet Explorer: 11.0.19041.1566

npmPackages:

@playwright/test: ^1.34.3 => 1.34.3

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
fullyParallel: true,
// reporter: process.env.CI ? 'dot' : 'list',
reporter: [['html', { outputFolder: '../playwright-report' }]],
retries: process.env.CI ? 1 : 0,
testDir: './e2e',
timeout: 30 * 1000,
expect: {
timeout: 5000,
},
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
use: {
baseURL: 'http://localhost:3000/',
headless: true,
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
trace: 'on',
video: 'on-first-retry',
},
projects: process.env.CI
? [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
// { name: 'firefox', use: { ...devices['Desktop Firefox'] } },
]
: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
webServer: process.env.CI
? {
command: 'pnpm serve',
port: 3000,
}
: undefined,
});

Test file (self-contained)

it('should check the box using setChecked', async ({ page }) => {
await expect(1 + 1).toBe(2);
});

Steps

See my open source project, the Playwright tests fails when ran in GitHub Actions CI. I use pnpm

the full GitHub Actions config can be found at

https://github.com/ghiscoding/multiple-select-vanilla/blob/main/.github/workflows/main.yml

below is a summary

steps:
- uses: pnpm/action-setup@v2.2.4
with:
version: 8
run_install: true

- name: Run Playwright E2E Tests
uses: mathiasvr/command-output@v2.0.0
id: playwrightsummary
with:
run: pnpm test:e2e

You can see the GitHub Action failure at this link

https://github.com/ghiscoding/multiple-select-vanilla/actions/runs/5086352694/jobs/9140741590

Expected

No error in both local and CI

Notes

If I install both @playwright/test and playwright, it passes in the CI but fails locally because of the new breaking change to not install both

Actual

Running 63 tests using 1 worker
×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F
×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F×F

1) [chromium] › events.spec.ts:4:7 › Events Demo › executing multiple actions with ms-select should fire multiple events

Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1060/chrome-linux/chrome
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ npx playwright install ║
║ ║
║ <3 Playwright Team ║
╚═════════════════════════════════════════════════════════════════════════╝

Issue 2:
System info

Playwright Version: [v1.32.3]

Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]

Browser: [All, Chromium, Firefox, WebKit]

Other info: i have many test files but i am interested to run specific test files so i am running below command

testMatch='[ngAccordion.automation.ts, ngcheckbox.automation.ts]' npx playwright test --project=chromium

I get Error: No tests found

I tried adjusting above command with quotes and passing array to testMatch is not working, if i set same array directly in the configs then it works. can you point out me where i am making mistake in the command while setting testMatch