Rule handbook metadata

Rule
DET.STUDIO.TESTID · lane deterministic
Page status
current
page_version
f0ba01f2d6bd68aea7bdabe3510b7b0ac6fc6ccb4142e16cfa07ac6063128612
generated_at
2026-08-13T00:00:00.000Z
registry_fingerprint
aef1de6082cf0f50d463783c843dee0ffb9132fbd5ed4ea6e5bb3f031f359c72

How this rule is fixed

Not in the deterministic fixer pilot registry (stub or not yet wired). Use the After example below as the target state and remediate manually or extend pilot-registry.json.

Detection module: docs/design/ux-audit/deterministic-design-rules.md#det-studio-testid. Scroll down for Before / After examples and Evidence and remediation steps.

Purpose

Studio UX PDCA runs Playwright specs per manifest (playwright_test_glob). Pages should expose data-testid on header, tabs, primary table, and primary CTA so gates do not flake on text-only selectors.

Minor severity—does not block IA remounts but should be fixed before campaign close.

Passing signals

  • data-testid on page header, tablist, or primary workspace region.
  • Manifest spec files reference the same ids.

Failing signals

  • Zero data-testid on a page with playwright_test_glob configured.

Before example

Before (failing example)

Ingest

After example

After (passing example)

Ingest

Evidence and remediation

  • page.json.testid_count from capture-page.mjs.