Add focused confirmPaste coverage for clipboard validation and modal handoff#1473
Merged
marcuscastelo merged 4 commits intoMar 25, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: marcuscastelo <27441558+marcuscastelo@users.noreply.github.com> Agent-Logs-Url: https://github.com/marcuscastelo/macroflows/sessions/f300a3f2-84e4-41f8-8474-fe0ef356c507
Co-authored-by: marcuscastelo <27441558+marcuscastelo@users.noreply.github.com> Agent-Logs-Url: https://github.com/marcuscastelo/macroflows/sessions/f300a3f2-84e4-41f8-8474-fe0ef356c507
Copilot
AI
changed the title
[WIP] Add tests for confirmPaste clipboard use-case
Add focused confirmPaste coverage for clipboard validation and modal handoff
Mar 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds targeted Vitest coverage for the clipboard confirmPaste use-case to prevent regressions in paste validation and modal handoff behavior.
Changes:
- Introduces a dedicated
clipboardUseCases.confirmPastetest suite covering success, empty clipboard, and schema mismatch paths. - Mocks
openPasteConfirmModalat the module boundary and asserts correct arguments/handler wiring. - Asserts the expected
showErrorcalls for invalid/empty clipboard scenarios.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
confirmPastehad no test coverage despite being a user-facing clipboard entry point that validates payloads, shows errors, and routes into the paste confirmation flow. This change adds focused coverage for the success and failure paths that matter to paste behavior.Clipboard use-case coverage
createClipboardUseCases().confirmPasteUI handoff verification
openPasteConfirmModalat the module boundaryError-path assertions
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
test.supabase.co/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/macroflows/macroflows/node_modules/.pnpm/tinypool@1.1.1/node_modules/tinypool/dist/entry/process.js(dns block)/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/macroflows/macroflows/node_modules/.pnpm/tinypool@1.1.1/node_modules/tinypool/dist/entry/process.js user.email /usr/local/sbin/bash(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
confirmPasteuse case lacks test coverage. This is a critical user-facing function that validates clipboard data and shows error messages. Add tests to verify: #1357📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.