Skip to content

[Bug]: VSCode extension aborts run after a single slow (>10s) API test — subsequent tests never execute despite #40889

@bencelados

Description

@bencelados

Version

1.60.0

Steps to reproduce

Environment:

Playwright @playwright/test ^1.60.0
Playwright Test for VSCode extension (latest)
VS Code on Windows 11
Test type: REST API (no browser, uses Playwright request fixture)
Config: workers: 1, fullyParallel: false, per-test timeout: 30_000

Reproduction:

  1. Test suite with 80 API tests using request fixture (no browser)
  2. Backend has tests in the 10-17s range due to slow live API
  3. Click "Run All" from Test Explorer
  4. Observe: extension runs first ~57 fast tests successfully
  5. When the first slow test starts (installations.equipment.by-id, ~17s wait on backend), the extension's UI top counter changes from 57/80 to 57/57
  6. The slow test completes in the underlying Playwright process (terminal output shows ok 58 ... (17.0s)) but the result is dropped from the UI
  7. All subsequent tests (59-80) are never executed — they remain in ○ state forever

Even smaller reproductions: a 3-test folder containing one 17s test as test #1 — only ok 1 completes; tests 2-3 never run.

Expected behavior

All 80 tests execute sequentially under workers: 1; UI shows results for each.

Actual behavior

Extension aborts the session ~15-17s after a slow test starts, regardless of remaining tests.

Additional context

Workaround: Use npx playwright test from CLI — runs all 80 successfully in ~96s.

Hypothesis: Extension's IPC heartbeat to the test-server has a shorter timeout than per-test timeout. API tests block on request.fetch() without progress events, exceeding the heartbeat threshold even though the test itself is healthy.

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (14) x64 Intel(R) Core(TM) Ultra 7 155U
    Memory: 3.41 GB / 31.51 GB
  Binaries:
    Node: 24.13.1 - C:\Program Files\nodejs\node.EXE
    npm: 11.12.1 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.120.0 - C:\Users\gsgbla\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
    Claude Code: 2.1.45 - C:\Users\gsgbla\AppData\Roaming\npm\claude.CMD
  npmPackages:
    @playwright/test: ^1.60.0 => 1.60.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions