test: add pcb snapshot test for polygon smtpads with solder mask coverage#2053
Closed
marchantdev wants to merge 1 commit intotscircuit:mainfrom
Closed
test: add pcb snapshot test for polygon smtpads with solder mask coverage#2053marchantdev wants to merge 1 commit intotscircuit:mainfrom
marchantdev wants to merge 1 commit intotscircuit:mainfrom
Conversation
…rage Adds a PCB snapshot test demonstrating polygon-shaped smtpads with coveredWithSolderMask in a 5-segment capacitive touch slider layout. The test verifies: - 5 diamond-shaped polygon pads created correctly - All pads have is_covered_with_solder_mask: true - No solder paste generated for solder-mask-covered pads - Visual PCB snapshot for regression detection Relates to tscircuit/tscircuit#786 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the pcb snapshot test component of tscircuit/tscircuit#786 (Support Capacitive Touch Slider / smtpad solder mask).
Changes
New file:
tests/components/normal-components/polygon-smtpad-with-soldermask.test.tsxCreates a 5-segment diamond-shaped capacitive touch slider footprint using polygon
<smtpad>elements withcoveredWithSolderMask. The test verifies:is_covered_with_solder_mask: truetoMatchPcbSnapshotfor regression detectionContext
The
coveredWithSolderMaskprop was added to props + circuit-json in upstream PRs (already merged). The circuit-to-svg rendering was implemented in tscircuit/circuit-to-svg#314 (closed Nov 2025). This test provides the tscircuit/core integration test that verifies the full pipeline from TSX → circuit-json → PCB element with correctis_covered_with_solder_mask.The existing
smtpad-covered-with-soldermask.test.tsxonly tests arectshaped pad without a snapshot. This PR adds snapshot coverage for thepolygonshape which is the primary use case for capacitive touch (complex pad geometry that must be insulated from direct finger contact).