microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.62k stars 3.57k forks source link

[Bug] [VSCODE extension]: Multi-root workspaces with playwright confuses the extension, both test suites never show up #32338

Open alexrecuenco opened 2 weeks ago

alexrecuenco commented 2 weeks ago

Version

1.46.1

Steps to reproduce

  1. Clone my repo https://github.com/alexrecuenco/playwright-multiroot-report
  2. cd playwright-multiroot-report
  3. npm install in both a and b
  4. Open it with code ./report-playwright.code-workspace to open a multi-root workspace
  5. Go to the Testing View,
  6. See that not both a and b ever show up, and if you refresh you get either a or b showing up their tests suites
Screenshot 2024-08-27 at 2 32 49 PM Screenshot 2024-08-27 at 2 32 54 PM

Expected behavior

I see both test suites, the test suites of a and b

Actual behavior

The test suite of a shows up, or b , it appears to be random

Additional context

We currently have multiple projects. And I prefer to have them all collected into one workspace from which to work, and playwright seems to be causing some conflict

Environment

System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M2
    Memory: 87.95 MB / 16.00 GB
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
  IDEs:
    VSCode: 1.92.2 - /usr/local/bin/code
  Languages:
    Bash: 5.2.26 - /opt/homebrew/bin/bash
  npmPackages:
    @playwright/test: ^1.46.1 => 1.46.1
alexrecuenco commented 2 weeks ago

I would put it in microsoft/playwright-vscode but that repository doesn't allow issues. So I imagine you want the report here