Skip to main content
This guide covers common issues you might encounter when using Stably’s Reporter & Analytics features and how to resolve them.

Trace is not available for this test case

If you see the message “Trace is not available for this test case” in the Stably reporter view, it means that Playwright traces were not captured for your test run.

Problem

By default, when you follow Playwright’s official installation instructions,the trace configuration to "on-first-retry". This means traces are only captured when a test fails and is retried, not on the first run or for passing tests.

Solution

Solution #1 (Preferred)

Ensure you are using npx stably test instead of npx playwright test. The stably command will ensure the correct tracing behavior is set.

Solution #2

Update your playwright.config.ts file to change the trace setting to capture traces for all test runs:
use: {
  /* Base URL to use in actions like `await page.goto('')`. */
  // baseURL: 'http://localhost:3000',

  /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
  trace: "on", // Changed from "on-first-retry"
},