Skip to content

BountyDescription.test.tsx has no coverage for ordered lists, blockquotes, GFM tables, or the h1-h3 heading-level remapping #272

Closed

Description

@chonilius

src/components/bounty/BountyDescription.test.tsx has two describe blocks: "content
fidelity" (fenced code blocks, links, bold text, bullet lists) and "untrusted-content
hardening" (the <img onerror>, javascript: URL, and raw <script> XSS-hardening
assertions).

markdownComponents (in BountyDescription.tsx) also defines custom renderers for ol,
blockquote, h1, h2, and h3 — none of which are exercised by any test in this file.
Specifically untested:

  • Ordered lists (ol/li numbering) — only the bullet-list (ul) case is covered.
  • Blockquotes — the border-l-2 ... italic styling is defined but never asserted.
  • The h1 → <h2>, h2 → <h3>, h3 → <h4> heading-level remapping this component
    performs (deliberately shifting GitHub's heading levels down one, per the component's
    own doc comment) — nothing verifies an issue body's # Heading actually renders as an
    <h2> rather than a raw <h1> that would visually compete with the page's own <h1>.
  • GFM tables (via remarkGfm) — related to the "no table styling" bug filed separately
    against this same component; even once that's fixed, this file would have no test
    guarding the fix.

Given the second describe block in this file demonstrates a real commitment to
thorough, security-conscious testing for this component, the gap in the "content
fidelity" half — three of the eight custom component mappings entirely untested — is a
concrete, closeable gap in an otherwise well-tested file.

Suggested fix: add cases for ordered lists, blockquotes, and the heading-level shift to
the "content fidelity" describe block.

Activity

  1. added
    testing
    accessibility
    security
    documentation
    very hard
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. olu-cmd commented on Aug 25, 2026

    @olu-cmd

    @olu-cmd has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Can i please work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @olu-cmd to this issue.

  4. Quadri-55 commented on Aug 25, 2026

    @Quadri-55

    @Quadri-55 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    ​I would like to work on this issue because ensuring comprehensive test coverage for core UI components is vital for preventing regressions and maintaining reliable frontend behavior. Adding proper test coverage for the ordered prop in BountyDescription.test.tsx will help ensure that lists and descriptions render correctly under all expected states.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Quadri-55 to this issue.

  5. ijeoma270 commented on Aug 25, 2026

    @ijeoma270
    Contributor

    @ijeoma270 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    hello can i work on this issue please

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @ijeoma270 to this issue.

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @ijeoma270! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @ijeoma270: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. added 2 commits that reference this issue on Aug 25, 2026
  8. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @ijeoma270 as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @ijeoma270: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  9. removed
    Stellar Wave
    on Oct 15, 2026
  10. added
    Stellar Wave
    on Oct 15, 2026
  11. removed
    Stellar Wave
    on Oct 15, 2026
  12. added
    Stellar Wave
    on Oct 15, 2026
  13. removed
    Stellar Wave
    on Oct 15, 2026
  14. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Waveaccessibilitydocumentationsecuritytestingvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions