feat(web): assert computed CSS on owned scoped locators

Closed
RU
1mo ago
+295-9
  • Release transient computed-style references immediately after each poll, including ambiguous matches, without evicting retained user references.
  • Correct the matcher inventory/JSDoc and make the native delayed-opacity case measure actual polling.

Verified

Ran it locally: yes.

A built PlaywrightSurface reads real exact-label element handles at the 2048 retained-reference limit. The original PR fails because none of the seven internal handles is disposed. The repair disposes each once, removes temporary IDs, and preserves the user-held reference. Units cover clear/release cleanup as well.

Node 24.19.0, Vitest 5.0.1
Reference unit/native files: 5 tests passed
Built runner/worker fixture: 1 test passed (two actual consumer cases)

The built CLI exercises actual delayed opacity, closed-shadow/iframe scope, custom properties, invalid/ambiguous input and previous-attempt ownership. The opacity timer begins immediately before that assertion and the fixture measures at least 200 ms of waiting.

After rebuilding e2e and @e2e-dev/web: computed-style-references.test.ts, refs-disposal.test.ts and computed-css-worker.test.ts. Full pnpm 12.3.4 check passes, including builds/types/docs. Hosted checks and reviewer re-review remain separate from local proof. AI-assisted using Codex.