Skip to content

[Feature] Replace the fixed smoke test startup delay with readiness-based waits #2903

Description

@EmmaYuan1015

Issue description

Problem

The smoke test application startup currently waits for the VS Code workbench to become visible and then unconditionally sleeps for another 10 seconds.

This fixed delay increases the execution time of every smoke test. It also does not guarantee readiness on slower environments, while unnecessarily delaying faster environments.

Proposed change

Remove APPLICATION_INIT_SLEEP and the corresponding fixed sleep from Application.launch().

The test infrastructure should continue to rely on:

  • waitForWorkbenchWindow() to detect when the VS Code workbench is available.
  • Test-specific Playwright waits for commands, views, and extension UI elements.

Expected result

  • Smoke tests no longer have an unconditional 10-second startup delay.
  • Tests continue to wait for the UI elements they actually require.
  • Overall smoke test execution time is reduced.
  • TypeScript smoke test compilation continues to pass.

Validation

Run:

npm run compile-smoke-tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions