GitLab CI

SentinelQA works through `@sentinelqa/playwright-reporter`, so GitLab CI only needs the right variables. Your test command stays `npx playwright test`.

Required variables

  • `SENTINEL_TOKEN` (project ingest token)

What to do in CI

bash
SENTINEL_TOKEN=$SENTINEL_TOKEN

Sentinel uploads automatically after the Playwright run finishes.

Playwright config

Wrap your existing config once and keep the rest of the repo unchanged.

ts
import { defineConfig } from "@playwright/test";
import { withSentinel } from "@sentinelqa/playwright-reporter";

export default withSentinel(
  defineConfig({
    reporter: [["line"]],
    outputDir: "test-results",
    use: {
      trace: "retain-on-failure",
      screenshot: "only-on-failure",
      video: "retain-on-failure"
    }
  }),
  {
    project: "my-app"
  }
);

Why this is easier

  • No separate Sentinel command in the GitLab job.
  • No YAML-specific integration to keep updated across pipelines.
  • Your existing `npx playwright test` command stays untouched.
  • Sentinel detects configured report paths and uploads automatically.