Skip to content

Press a copy control once it has drawn through one copy-control helper - #5911

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/press-copy
Nov 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/press-copy

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The code block's Copy row (code.copy, added in #5866) and the heading's copy-link row (heading.link.copy) each repeated the same three steps: wait for the copy control's definition, wait for its update, then click its trigger. The code block's comment pointed at the heading's copy of those steps. Waiting until the control has drawn its button is the copy control's own rule, so copy-control.js now keeps it as pressCopy, beside copyTrigger, and both rows call it. No behavior changes.

Verified with test_code_copy_on_plain_http_machine_name (click and Enter) and test_render_heading_links.py (6 passed), plus the browser type check and pre-commit. No new test, since both paths keep their existing coverage. The nightly review of recent commits found the duplicate.

The code block's Copy row (code.copy) and the heading's copy-link row
(heading.link.copy) each waited for the control's definition and update before
clicking its trigger, the code block's comment pointing at the heading's copy.
That wait is the copy control's own rule, so copy-control.js now keeps it as
pressCopy beside copyTrigger, and both rows call it. No behavior changes.
@leaf-agent
leaf-agent merged commit f7ddbb5 into main Nov 13, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the nightly/press-copy branch November 13, 2026 07:14
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