If the Playwright Test Explorer is empty or says “No tests have been found in this workspace yet,” first verify that VS Code has opened the project containing Playwright, its configuration file, and its test files. Then confirm the Microsoft Playwright extension is installed, Playwright Test is a project dependency, the selected configuration points at the right directory and filename pattern, and the command-line runner discovers the same tests. Those checks separate a project-discovery problem from an editor-integration problem.
What the message means
The Playwright VS Code extension discovers tests through Playwright Test installed in your project and exposes them in VS Code’s Test Explorer. An empty explorer does not identify one universal fault. A missing package, wrong workspace, selected configuration, restrictive matching rule, incompatible version, or extension connection problem can all produce similar symptoms.
The extension repository lists Playwright v1.38 or newer as a requirement. Treat that as a compatibility check, not proof that upgrading will fix every discovery failure. The official setup guide describes the extension’s run, debug, and test-generation integration in VS Code: Playwright VS Code setup.
Use this diagnostic order
- Confirm the official extension and the project dependency.
- Open the workspace that owns the Playwright files.
- Select the intended configuration if the workspace has more than one.
- Compare
testDirandtestMatchwith the files on disk. - Run the CLI with the same project and configuration.
- Inspect Playwright output and compare versions if the explorer is still empty.
Work through the steps in order. Changing several settings at once makes it difficult to tell which condition fixed—or caused—the problem.
#1 Best Overall
- FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
- AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
- ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
- AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
- STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth
1. Install the right extension and package
Install Microsoft’s Playwright extension
- In VS Code, open Extensions (
Ctrl+Shift+Xon Windows/Linux orCmd+Shift+Xon macOS). - Search for Playwright Test for VS Code and install the Microsoft-published extension.
- Reload VS Code if it offers a reload action.
Only the official extension provides the documented Playwright Test integration. A similarly named extension may not understand your project’s configuration.
Install Playwright Test in the project
Open the integrated terminal at the project root—the folder containing package.json—and run the package-manager command appropriate to your project:
npm install -D @playwright/test
npx playwright install
For a new project, the official guide also provides the Command Palette action Test: Install Playwright. It creates the standard project setup and browser installation flow. If your repository already has a lockfile, use its existing package manager rather than introducing a second one.
Check that @playwright/test appears in devDependencies (or the dependency section used by your project) and that a configuration file such as playwright.config.ts or playwright.config.js is present where the project expects it.
Recommended Free Tools
2. Open the workspace that contains the tests
VS Code resolves the extension from the opened workspace. Open the folder that contains the Playwright package, configuration, and test directory—not a parent folder that merely contains several projects, and not a subfolder that omits the package.
Rank #2
- Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.
- 14" HD Display: 14.0-inch diagonal, HD (1366 x 768), micro-edge, anti-glare. See your digital world in a whole new way. Enjoy movies and photos with the great image quality and high-definition detail of 1 million pixels.
- Memory & Storage: 4 GB LPDDR4x & 64 GB eMMC Storage. Adequate high-bandwidth RAM to smoothly run multiple applications and browser tabs all at once. An embedded multimedia card provides reliable flash-based storage.
- Ports:2 x USB 3.0 Type-A,1 x USB 3.0 Type-C,1 x HDMI,1 x Headphone Jack
- Chrome OS: Chromebook is a computer for the way the modern world works, with thousands of apps. Enjoy the seamless simplicity that comes with Google Chrome and Android apps, all integrated into one laptop. It’s fast, simple, and secure.
- Use File > Open Folder… (or Open Workspace from File… for a saved multi-root workspace).
- Select the repository root that contains
package.jsonand the Playwright config. - Open the Playwright sidebar and look for its configuration or gear control.
- If multiple
playwright.config.*files are detected, select the configuration that owns the tests you want to run.
VS Code supports multiple Playwright configurations. Selecting the wrong one can leave the explorer empty even when another configuration finds tests. The setup guide documents switching configurations: Playwright VS Code setup.
3. Check test discovery rules
Playwright does not treat every file containing a test-looking function as a test. Discovery is controlled primarily by the selected configuration’s testDir and testMatch (and, where used, testIgnore). Inspect those settings against the actual paths and names in your repository. The configuration reference lists the supported matching options: Playwright TestConfig reference.
Verify the directory
If the config contains testDir: './tests', the directory is resolved relative to that configuration file. A repository that stores tests in e2e/, specs/, or a package-specific folder will not be discovered until the directory is corrected or the files are moved.
Verify filename patterns
A restrictive testMatch can exclude valid files. For example, a pattern that accepts only *.spec.ts will not match login.test.ts. Check capitalization as well: case-sensitive filesystems can distinguish Tests from tests. Also check testIgnore for a broad pattern that excludes the entire directory.
Check the test file itself
- Import
testandexpectfrom@playwright/test, not from an unrelated package. - Ensure the file is inside the configured directory and has a matching extension.
- Look for syntax or import errors that prevent the module from loading.
- If using projects, confirm the selected configuration includes the project whose tests you expect; project definitions can filter or alter what runs. See Playwright test projects.
4. Compare VS Code with the CLI
Run the Playwright CLI from the same workspace. A listing command is a low-risk way to test discovery without executing browser actions:
Rank #3
- Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
- Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
- AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
- All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
- Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.
npx playwright test --list
If you use a non-default configuration, specify it explicitly:
npx playwright test --config=playwright.config.ts --list
Interpret the result as a diagnostic branch:
| CLI result | Most useful next check |
|---|---|
| No tests listed | Project setup, selected config, testDir, testMatch, ignores, and file errors. |
| Tests listed, VS Code empty | Workspace/config selection, extension diagnostics, and version compatibility. |
| CLI lists only some tests | Compare each missing file with matching, ignore, project, and directory rules. |
This is a practical inference, not a guaranteed root-cause rule: CLI and editor integrations can differ, and a single issue report cannot establish a universal explanation.
5. Inspect versions and extension diagnostics
Check the installed versions from the project root:
npm ls @playwright/test
npx playwright --version
Compare the result with the extension repository’s stated Playwright v1.38+ requirement: Microsoft Playwright VS Code extension. If the project is older, update deliberately through your normal dependency-review process and run the project’s tests afterward; do not assume an upgrade alone is a fix.
When CLI discovery works but the explorer does not, open View > Output and choose the Playwright output channel. Read the complete error, including the config path and connection message. Also check Help > Toggle Developer Tools only if the output channel does not explain the failure. Record the extension version, VS Code version, Playwright version, selected config, and workspace path before changing settings.
Rank #4
- Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
- 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
- Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
- All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
- AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.
A GitHub issue opened April 15, 2026 describes a configuration-connection failure in one environment where CLI execution still worked. The report lists Playwright 1.58.0, VS Code 1.114.0–1.116.0, and extension 1.1.17; those are the reporter’s environment details, not a compatibility matrix or proof that the same bug affects every installation. Read it as context, not as a universal remedy: Playwright issue #40226.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Common symptoms and targeted fixes
“No tests have been found in this workspace yet” immediately after opening VS Code
Confirm that the opened folder contains package.json, @playwright/test, the configuration file, and the test directory. Then use the Playwright sidebar’s gear control to select the intended config.
The explorer is empty but npx playwright test --list works
Read the Playwright output channel, verify the selected workspace and config, and compare extension, VS Code, and Playwright versions. The evidence supports investigating editor integration; it does not establish one specific setting or reinstall as a guaranteed fix.
Only one configuration’s tests appear
Select the other configuration from the sidebar gear control and verify that each config’s testDir, match, ignore, and project settings point to the expected files.
A new test file is not listed
Check its path, filename extension, case, and imports. Then rerun npx playwright test --list to see whether the CLI also omits it.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Best Value
- Portable Lightweight Design: Weighing just 3.6 lbs, the Laptop S7HI is portable, making it perfect for travel, work, and school. Its slim profile and 15-inch HD IPS display offer a great balance of size and portability for everyday use
- Powerful Processor: With a base frequency 1.9GHz Intel 5205U processor, this laptop handles multiple tasks efficiently. Whether you're working, studying, or streaming, enjoy a smooth experience with reliable performance
- Ample Storage with Expansion: 128GB of internal storage with an extra 512GB expansion slot offers plenty of room for your documents, photos, and videos. Ideal for students and professionals needing more space for files and projects
- Pre‑Installed Windows 11: Ready to Use Comes with a genuine Windows 11 system pre‑loaded, offering a clean, intuitive interface and broad software compatibility. Open the box, power on, and you're all set for school assignments, business reports, or daily computing needs.
- Comprehensive Connectivity Options: Equipped with Type-C, HDMI, SD Card Reader, and more, this laptop offers flexible connectivity. Stay connected via dual-band WiFi and Bluetooth 4.2, ensuring fast internet access and peripheral support
The extension reports a version or connection error
Capture the exact output, check the project’s Playwright version against the extension requirement, and reproduce from the correct workspace. Avoid deleting lockfiles or changing several dependencies before you have recorded the error.
Or skip the browser setup
If your goal is to obtain a reliable screenshot rather than run Playwright tests interactively, ScreenshotNeo provides a website screenshot API and MCP server. One GET request returns PNG, JPEG, WebP, or PDF. It accepts cookie/consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and each response identifies the result with X-Page-Verdict and X-Billed headers. Its MCP tools—take_screenshot, get_page_info, and capture_pdf—work with Claude, Cursor, and other MCP clients.
Use the ScreenshotNeo documentation for authentication and options. A direct cURL example is:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
Features include full-page and CSS-selector captures, dark mode, device presets or custom viewports, retina scale, PDF paper and page controls, HTML/CSS rendering, custom JavaScript, clicks, waits, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, usage reporting, and an OpenAPI specification. The parameter names used by other screenshot APIs also work, which can simplify migration.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000; yearly billing gives two months free, and every feature is included on every plan. Sign up for the free ScreenshotNeo plan.
Preventing discovery problems in new projects
- Keep the Playwright config near the package that owns it.
- Use a predictable test directory and filename convention.
- Commit the lockfile and document the package-manager command.
- Run
npx playwright test --listin CI or a pre-merge check so accidental matching changes are visible. - For multi-project repositories, document which config the VS Code sidebar should select.
Frequently Asked Questions
Does the message mean Playwright itself is broken?
No. The message only reports that the extension currently discovered no tests. The CLI/config comparison is needed to distinguish project matching from editor integration.
Can I use more than one playwright.config file in VS Code?
Yes. Use the Playwright sidebar’s gear control to select the configuration that owns the tests you want to see.
Should I upgrade Playwright immediately?
First compare your version with the extension’s documented v1.38+ requirement and read the actual output error. An upgrade is not a confirmed universal fix.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsQuick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

