mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 12:06:57 +02:00
noteCard() filtered on hasText, matching against a card's *entire* rendered text — with note-linking, a card's content preview can now render a linked note's title as plain text (a stripped note-link), so a substring match against the whole card ambiguously resolves to more than one card whenever one note's title happens to appear inside another's preview. Scoped the match to the card's <h3> title element with an anchored exact-match regex instead. This was failing CI on two tests: the note-linking suite's own backlink scenario, and — since test note titles aren't otherwise isolated across files in the same run — an unrelated notes-crud test whose note title happened to collide with a leftover "Linker Note" card's rendered preview. Verified: full e2e suite (114/114) passes locally against this fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>