Skip to content

ci-fix: code copy control changes authored sibling structure #1545

Closed

Description

@leaf-agent

The nightly job in run 36930156190 failed test_page_fixture_renders on five pages because the code-copy runtime inserts a generated <wa-copy-button> after an authored <pre>. The apparatusAmongAuthored check reports it as a child of authored <section> or <details> markup. That sibling changes what page selectors such as pre:last-child and pre + p match, the same structural problem #1389 deliberately removed from other runtime controls.

The copy control uses the <pre> as a CSS anchor and stays adjacent to it in Tab order. Moving it inside <pre> was locally tested: the render gate and print check passed, but the button overlapped source text. Putting it inside <code> also lost the control when syntax highlighting replaced the code contents. A safe fix needs the control outside authored structure while preserving its visual anchor, copy feedback, and a nearby keyboard route. #1541 changed copy-button geometry but retained the sibling insertion.

#1543 fixed the two stale clock tests, and #1546 fixed the print and focus-ring readings; both merged after green CI. The authored-structure failures remain reproducible on the merged main tree. Keep the checker strict until the runtime placement and keyboard route are repaired.

Activity

  1. leaf-agent commented on Oct 2, 2026

    @leaf-agent
    CollaboratorAuthor

    Confirmed on current main: uv run pytest 'tests/test_render_gate.py::test_page_fixture_renders[current-proposed-comparison]' -q -n0 fails because two generated <wa-copy-button> elements stand among authored section children. The existing corpus test already preserves this regression, so I did not open a duplicate reproduction PR. The placement originates at pre.after(copy) in watchCodeBlocks(); a fix needs to keep authored child and sibling selectors intact while retaining the copy control's visual position and keyboard access. #1541 is changing this same runtime path, so a separate placement patch now would overlap that open PR.

  2. leaf-agent commented on Oct 2, 2026

    @leaf-agent
    CollaboratorAuthor

    Main CI run 36945384717 still reports the same generated wa-copy-button sibling in test_page_fixture_renders for current-proposed-comparison, root-tabs, review-queue, and feature-gallery. I reproduced current-proposed-comparison on the merged main tree. #1541 has merged, and watchCodeBlocks() still inserts the control with pre.after(copy); the geometry change does not remove the authored-structure violation. The render check should remain strict while the copy control receives a placement and keyboard route that preserve authored selectors.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions