-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Regression]: Playwright Test for VSCode can't find *.spec.ts files #30843
Comments
Selecting the projects was the solution for me, but I think many people will run into this issue as it (apparently) only selects the first or only the setup and not your other projects. |
Folding into #30803 |
I only got that option in v1.1.1. of the plugin. When reverted to the previous version, I don't have it either |
It is new feature in plugin v. 1.1.1 |
Note from maintainersThere were some significant changes in the latest release of the VS Code Extension. If the FAQ does not resolve your issue, please file a new bug. |
Note from maintainers
There were some significant changes in the latest release of the VS Code Extension.
If you have problems with running tests, selecting projects and configuration,
running setup projects etc. after upgrading to the the recent version of the extension,
please read our FAQ.
Last Good Version
Playwright Test for VSCode v.1.0.22
First Bad Version
Playwright Test for VSCode v.1.1.1
Steps to reproduce
IDE: VS Code
in playwright.config.ts add additional 'setup' project:
projects: [ { name: "setup", testMatch: /.*setup.ts/, }, { name: 'chromium', use: { ...devices['Desktop Chrome'], storageState: 'playwright/.auth/user.json' }, dependencies: ["setup"], }, ]
Playwrights tests in folder .\tests
in files:
setup.ts
*.spec.ts
Expected behavior
On the left-hand side of each setup-test and each regular test, a play button should be displayed to start the test in question.
The Test Explorer tab should display the names of setup tests and regular tests
The plugin 'Playwright Test for VSCode v.1.0.22' correctly displayed all items for setup tests and regular tests
Actual behavior
After updating to 'Playwright Test for VSCode v.1.1.1'.
The play button is displayed next to the setup-test. The play button does not display for regular tests.
Only setup tests are displayed in the test explorer. No regular tests are displayed.
Additional context
Downgrade to 'Playwright Test for VSCode v.1.0.22' resolves the problem.
I can run all tests: setup tests and regular tests from the command line without using the Playwright Test for VSCode plug-in.
Environment
The text was updated successfully, but these errors were encountered: