Closed
Description
System info
- Playwright Version: [v1.37.0]
- Operating System: [macOS 13.5]
- Browser: [All]
Config file
// extract from playwright.config.ts
projects: [
{
name: 'setup',
testMatch: /global.setup\.ts/,
use: {
...devices['Desktop Chrome'],
},
},
{
name: 'chromium',
use: devices['Desktop Chrome'],
dependencies: ['setup'],
},
],
Steps
- Create a project dependency as shown in playwright.config.ts
- Add the 'only' annotation to a test (test.only)
- Run test
Expected
Test run as with previous version.
Actual
Test fails with the following error:
TypeError: Cannot read property '_hasTests' of undefined
When removing the dependency or the tag only tests run without issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment