diff --git a/tests/repros/__snapshots__/repro-fixed-gnd-label-trace-overlap-schematic.snap.svg b/tests/repros/__snapshots__/repro-fixed-gnd-label-trace-overlap-schematic.snap.svg new file mode 100644 index 0000000000..4160416dd4 --- /dev/null +++ b/tests/repros/__snapshots__/repro-fixed-gnd-label-trace-overlap-schematic.snap.svg @@ -0,0 +1,12 @@ +VEML7700_TRU11SCL2VDD3GND4SDAC20.1uFredD1GND \ No newline at end of file diff --git a/tests/repros/repro-fixed-gnd-label-trace-overlap.test.tsx b/tests/repros/repro-fixed-gnd-label-trace-overlap.test.tsx new file mode 100644 index 0000000000..c56912bf85 --- /dev/null +++ b/tests/repros/repro-fixed-gnd-label-trace-overlap.test.tsx @@ -0,0 +1,52 @@ +import { expect, test } from "bun:test" +import { getTestFixture } from "tests/fixtures/get-test-fixture" + +test("fixed GND label overlaps an automatically routed ground trace", async () => { + const { circuit } = getTestFixture({ platform: { pcbDisabled: true } }) + // Reduced from SparkFun-Ambient-Light-Sensor-VEML7700-(Qwiic). + circuit.add( + + + .pin2", pin2: "net.GND" }} + /> + + {/* This fixed label is crossed by the automatically routed GND wire. */} + + , + ) + await circuit.renderUntilSettled() + // Capture the current bug: the U1-to-D1 ground route crosses the GND text. + expect(circuit).toMatchSchematicSnapshot(import.meta.path, { + width: 600, + height: 1100, + grid: false, + }) +})