Skip to content

test(studio): remove brittle style source scan - #129

Merged
phodal merged 1 commit into
mainfrom
fix/studio-remove-source-scan
Aug 28, 2026
Merged

test(studio): remove brittle style source scan#129
phodal merged 1 commit into
mainfrom
fix/studio-remove-source-scan

Conversation

@phodal

@phodal phodal commented Aug 28, 2026

Copy link
Copy Markdown
Member

Summary

  • remove the Playwright case that scans owned CSS source for forbidden literals
  • keep browser-observable layout, focus, overflow, and console-error coverage intact
  • stop valid Studio style changes from failing only in the Ubuntu job that runs Playwright

Why

The deleted case never opened a page. It used regexes over source text to enforce design policy, so it did not prove browser behavior and failed on a valid local white image background. This repository explicitly prefers behavior assertions over source-pattern checks.

Validation

  • Studio build passed on Node 24
  • Studio Vitest: 491 passed
  • Studio Playwright: 51 passed
  • git diff --check passed

Risk

Low. This removes a brittle policy gate but no runtime or UI behavior. Existing cross-layout and accessibility browser checks remain.

Drop the Playwright case that reads CSS files and rejects raw source literals. The check does not exercise browser behavior and duplicated design-policy review as a regex gate, causing valid Studio changes to fail only in the one CI job that runs Playwright.

Validated with the Studio build, 491 unit tests, and 51 Playwright browser tests on Node 24.

Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
@phodal
phodal merged commit 777b0cb into main Aug 28, 2026
4 checks passed
@phodal
phodal deleted the fix/studio-remove-source-scan branch August 29, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant