SANJIESAN TOOLS / Small browser tools
A copy button needs a failure path too
A small planning page may prepare useful text and then lose trust with one optimistic message: copied. The label should describe what actually happened, while the person using the page still needs a way to recover if the browser refuses the operation.
State exactly what the action does
Write the intended result as placing the displayed outline on the system clipboard. MDN describes Clipboard.writeText as an asynchronous operation whose promise resolves after the clipboard is updated, and notes that writing can be disallowed. That is different from sending the outline, saving it to an account or submitting an enquiry. Keep those verbs out of the success message unless the page really performs those separate actions. The interface should not imply a downstream task has been completed.
Paste into a plain text destination
Use a synthetic outline with a heading, a Chinese line and an intentional paragraph break. Trigger the copy action, then paste into a plain text destination you control. Compare the full text with the visible outline, including the last line. A toast alone is not evidence that the intended content arrived. Avoid using private notes in this check, since the clipboard can be exposed to other applications and may retain content beyond the immediate page interaction.
Leave the text available when copying is refused
Ask the maintainer to test an unavailable or denied clipboard path in an isolated development fixture. The visible outline should remain selectable, with instructions for manual copying or a genuine download option. A failed operation should say it failed without clearing the work. Record which path was exercised and what the user could still do. When reviewing the page, check that keyboard navigation can reach the text and that repeated clicks do not produce misleading conflicting notices.