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, they automatically set 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

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"
},

Verifying Your Configuration

After updating your configuration:
  1. Run your tests locally: npx playwright test
  2. Check that traces are being generated in your test results
  3. View the traces in the Stably reporter to confirm they’re available
If you continue to experience issues, please contact Stably support.
I