Page MenuHomePhabricator

Create tests for AddLinkArticleTarget.prototype.annotateSuggestions
Open, MediumPublic


We have no tests for a key component of the link suggestion process. Ideally we'd have a set of wikitext that we could pass to Parsoid (or we could start off with the Parsoid HTML), feed that into annotateSuggestions(), and check that the correct phrases are annotated. T281777: Add a link: link suggested inside red link made me think about this.