Skip to content

Exercise a multi-hop nested fill on the variant-anchored path #682

Description

@nathanacurtis

Problem

The path that anchors a slot fill onto an instance element can address a slot more than one instance boundary below that anchor, by recording the instance chain as a path. Nothing exercises it: every relation on the one screen tested so far was a single hop, so the deeper form is wired and unverified.

A composition nests layout components several levels deep, which is exactly where a multi-hop fill would occur, so the untested path is the one a real screen is most likely to hit.

Potential solution(s)

  • Author a fixture whose non-default slot sits two or more instance boundaries below the anchor, and assert the recorded path
  • Cover it at the unit level too, so the shape is pinned without a Figma round trip

Acceptance criteria

  • A fixture exists whose filled non-default slot is two or more instance boundaries below the instance that anchors it
  • The generated spec records the instance chain between anchor and slot, not a single hop
  • The fill survives a round trip through Figma
  • A unit test asserts the multi-hop shape independently of the fixture

Case data

  • Workspace: specs-testing
  • Territory: testing
  • Size: s

Notes

#672 and #677 concern which slot is captured rather than how deep it sits, and #663 is parity rather than depth, so neither covers this.

The single-hop case is covered by existing unit tests, which assert an empty path explicitly — the deeper case is the gap.


Implementation details are tracked internally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

specs-from-figmaTransformer from Figma into specstestingspecs-testing parity validation

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions