Reputation: 51
I'm starting to learn the Playwright. It's my first try to run a test. I've installed the Playwright Test for VSCode extention, then I've run
npm init playwright@latest --yes -- --quiet --browser=chromium --browser=firefox --browser=webkit
to install the browsers and the excemples. Now, when I'm opening the demo-todo-app.spec.ts I don't see the run button next to the test block
The green triangle next to the test block does not appear
I'm using macOS, node v18.17.1, VS Code version 1.80.0 (Universal) and Playwright Version 1.37.1.
How I can get the run test button?
I'd try also use v16 but it didn't help
I'd try all the solutions I've find here Playwright VSCode gives `No tests found` message but nothing helped
Upvotes: 5
Views: 5052
Reputation: 21
Refer to the following answer of vmomryk on a related Github issue thread.
On the left panel, select Test Explorer and click run there.
Upvotes: 2
Reputation: 390
You can enable it by open playwright.config.ts
, then change the testDir
to tests-examples
or to testDir: './'
export default defineConfig({
testDir: './',
// omitted
Upvotes: 0