Skip to content

Test cards update preserves HTML body - #512

Merged
robzolkos merged 1 commit into
mainfrom
test/cards-update-html-body
Jun 29, 2026
Merged

robzolkos merged 1 commit into
mainfrom
test/cards-update-html-body

Conversation

@robzolkos

@robzolkos robzolkos commented Jun 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a regression test for cards update --body '<p>Hello <code>world</code></p>'
  • Assert preformatted HTML is sent as the card content payload unchanged

Validation

  • GOWORK=off go test ./internal/commands -run 'TestCardsUpdate(PreservesHTMLBody|ContentIsHTML)'

Refs #420.


Summary by cubic

Add a regression test verifying that cards update --body '<p>Hello <code>world</code></p>' preserves the HTML body and sends it unchanged as the content payload. Addresses #420.

Written for commit 5dd8bf2. Summary will update on new commits.

Review in cubic

Copilot AI review requested due to automatic review settings June 29, 2026 20:20
@github-actions github-actions Bot added commands CLI command implementations tests Tests (unit and e2e) bug Something isn't working labels Jun 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test to ensure cards update --body preserves and sends preformatted HTML unchanged in the API content payload, preventing a recurrence of the HTML-discarding behavior described in #420.

Changes:

  • Add TestCardsUpdatePreservesHTMLBody to validate that raw HTML passed via --body is sent as the content field without transformation.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@robzolkos
robzolkos merged commit 0a47558 into main Jun 29, 2026
27 checks passed
@robzolkos
robzolkos deleted the test/cards-update-html-body branch June 29, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working commands CLI command implementations tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants