Skip to content

test: drop Astryx DOM geometry and CSS string contracts - #2587

Merged
jackwener merged 5 commits into
mainfrom
chore/drop-astryx-dom-contracts
Aug 9, 2026
Merged

test: drop Astryx DOM geometry and CSS string contracts#2587
jackwener merged 5 commits into
mainfrom
chore/drop-astryx-dom-contracts

Conversation

@jackwener

Copy link
Copy Markdown
Member

Summary

After #2574 / #2584, a class of tests still treated vendor Astryx DOM / CSS shape as product API. Those are brittle and not user journeys. This PR deletes them.

Removed

Item Why
e2e/activity-card-sticky.spec.ts + activityCardWindow fixture Sticky px offsets (8 / 32) on tool-call rows — geometry contract, not product journey
contract-css-helpers.ts / css-test-helpers.ts CSS file grepping infrastructure with no remaining consumers after below
stale-sessions CSS contract cases Regex against .astryx-side-nav-item selector chains; keep classifier + panel data-stale/pill render tests
tool-trow-stability “Astryx tool-call root” case Asserted vendor class astryx-chat-tool-calls
streaming-handoff count of astryx-chat-tool-calls Same; keep timeline order assertions
Skills scroll-containment story play Scroll geometry + List a11y selector; keep visual catalog story
Skills inspector play’s resize-handle hit-strip geometry Vendor Astryx resize handle layout pin

Intentionally kept

  • Composer draft / skill-draft journeys (real product)
  • blank-UA-CH phase in keyboard-help (the one remaining real Astryx patch)
  • Product presentation tests (tool-activity-presentation, linked subagent rows, diff ± counts)
  • Storybook harness play-executed contract

Net: −301 lines.

Test plan

  • CI green (storybook + e2e no longer run sticky geometry)
  • stale-sessions unit: classifier + pill wiring still run
  • tool-trow-stability: diff counts + linked subagent cases still run

@jackwener

Copy link
Copy Markdown
Member Author

Round 2 (pushed)

Also removed / slimmed:

  • Daily Review settings bounds geometry play helper
  • .astryx-skeleton class checks (keep aria-busy)
  • astryx-codeblock markup asserts in tool-activity unit tests
  • MCP editor field Y-order bounding boxes
  • session-workbar CSS width px asserts (keep aria-valuenow + persistence)

Still intentionally kept: mermaid chrome product journey, skill/token chips via astryx token attrs (user-visible chips), keyboard-help blank UA-CH patch gate.

@jackwener
jackwener force-pushed the chore/drop-astryx-dom-contracts branch from e6b3dfe to e953f57 Compare August 9, 2026 07:57
Remove suites that pinned vendor class names, sticky px offsets, List
aria-label, and CSS-grep structure after #2574 dropped ceremonial patches.
Keep product journeys, classifier logic, and the real blank-UA-CH patch gate.
Second pass: Daily Review bounds play, Astryx Skeleton class checks,
astryx-codeblock markup matches, MCP field Y-order, and workbar CSS
pixel widths. Keep accessible values, journeys, and product signals.
Removing test greps for astryx-chat-tool-calls / astryx-codeblock made
check-dead-css treat product CSS overrides as dead. Mark them as runtime
themeProps classes like the other Astryx hooks.
@jackwener
jackwener force-pushed the chore/drop-astryx-dom-contracts branch from 8251fe0 to 24fa21e Compare August 9, 2026 08:12
Drop flaky/geometry/vendor-heavy specs (quote-companion, mermaid layout,
mention grammar, workbar resize, providers/MCP/onboarding surfaces, etc.).
Keep send+IME, draft survival, skill revision drafts, blank-UA-CH help,
settings theme shell, and artifact list navigation. Prune unused fixtures.
Knip typecheck failed: skill-delete e2e was the last consumer.
@jackwener
jackwener merged commit 4303721 into main Aug 9, 2026
12 checks passed
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