test: failing tests documenting emoji migration regressions - #41609
test: failing tests documenting emoji migration regressions#41609KevLehman wants to merge 2 commits into
Conversation
Red tests for runtime-confirmed regressions from the joypixels -> native unicode migration (#39411): - generateEmojiData: emojione hair-style shortcodes (:bald: et al) and :iphone: no longer resolve; bare text-presentation emojis (bare heart, relaxed) missing from bareAliases; shortnameToUnicode skips a shortcode that follows an unknown :token: (12:30:fire:) - helpers: one unresolvable name truncates the rest of a picker category; legacy emojione shortcodes invisible to renderPicker; mixed-tone variants never returned by picker search; frequent emoji list yields empty quick-reaction slots - customEmoji: deleting a custom emoji that shadows a native shortcode permanently removes the native emoji until reload - pdf-worker: transcript emits emojibase-primary shortnames (:+1:) instead of the joypixels-first names the app uses
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Counterpart baseline PR (same expectations passing on 8.6, pre-migration): #41610 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.7.0 #41609 +/- ##
=================================================
+ Coverage 68.40% 68.41% +0.01%
=================================================
Files 4139 4139
Lines 158309 158311 +2
Branches 28305 28306 +1
=================================================
+ Hits 108290 108314 +24
+ Misses 44882 44861 -21
+ Partials 5137 5136 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Drop tests for pre-existing bugs the migration merely exposed (custom emoji shadow-delete, category truncation, frequent-slot decay) and for the dead mixed-tone search branch, which has no pre-migration baseline. Rework the bare-emoji expectation onto the public render surface, scoped to pictographs so it coexists with the deliberate VS16-only handling of text symbols. Align the pdf-worker suite on the joypixels vocabulary (#41587) instead of contradicting it in place.
|
Revised after an adversarial pass over the findings: removed tests for pre-existing bugs the migration merely exposed (custom-emoji shadow delete, category truncation on stale names, frequent-slot decay — the defective code and trigger paths exist identically on 8.6) and for the dead mixed-tone search branch (defect in new code, no pre-migration baseline). Reworked the bare-emoji test onto the public render surface scoped to pictographs (coexists with the intentional VS16-only |
Proposed changes (including videos or screenshots)
Adds deliberately failing tests (12 red) documenting runtime-confirmed regressions from the joypixels → native unicode emoji migration (#39411). Each failure is the expected assertion, not a setup error; all pre-existing tests stay green (except the pdf-worker vocabulary assertions, deliberately realigned — see below).
apps/meteor/app/emoji-native/lib/generateEmojiData.spec.ts(jest):bald:,:red_haired:,:curly_haired:,:white_haired:) and:iphone:no longer resolve;shortnameToUnicodeskips a shortcode directly following an unknown:token:(12:30:fire:)apps/meteor/app/emoji-native/lib/getEmojiConfig.spec.ts(jest)❤☺no longer render as emojis — scoped to pictographs so it coexists with the deliberate VS16-only handling of©/™apps/meteor/tests/unit/app/emoji/helpers.spec.ts(mocha)digit_one) render in messages but are invisible torenderPicker— pre-8.7 recents silently disappear from the pickeree/packages/pdf-worker/.../markup/emoji.spec.ts(jest):+1:,:grinning_face_with_big_eyes:) instead of the joypixels-first vocabulary the app renders since #41587 (:thumbsup:,:smiley:); suite realigned in place rather than contradicting the old assertionsIssue(s)
Regressions from #39411. All findings were verified at runtime against a live server (screenshots/DOM inspection) before writing the tests.
Steps to test or reproduce
Regressions under test
All regressed by the native emoji migration (#39411); IDs from the internal review triage. Every one was runtime-verified against a live server before the test was written, and each has a passing 8.6 baseline in the counterpart PR.
shortnameToUnicode(push/email notification text) skips a shortcode that directly follows an unknown:token:—12:30:fire:keeps the raw:fire:. Message rendering is NOT affected (parser behavior is identical pre/post migration).generateEmojiData.spec.ts› timestamp-adjacent:bald::red_haired::curly_haired::white_haired:render as literal text (dropped by thegroup === 2skip).generateEmojiData.spec.ts› hair-style ×4:iphone:renders as literal text —joypixels ?? emojibasepicks joypixels wholesale, losing emojibase-only aliases.generateEmojiData.spec.ts›:iphone:❤☺get no.emojispan, tooltip, or big-emoji treatment — emojione rendered them; the fix must preserve the intentional VS16-only handling of©/™.getEmojiConfig.spec.ts› bare pictographsdigit_one, …) render fine in messages but are invisible in picker recents —renderPickerhas no legacy-map fallback, so pre-8.7 recents vanish after upgrade.helpers.spec.ts› legacy shortcodes:+1:,:grinning_face_with_big_eyes:) instead of the joypixels-first vocabulary the app renders (#41587) — same root cause as #41606.pdf-workeremoji.spec.ts×4Deliberately excluded (real bugs, but not migration regressions — the defective code and trigger paths exist identically on 8.6; tracked as separate bug-fix follow-ups):
returnvscontinueincreateEmojiList).Also not covered: federation reactions (fixed in #41606); livechat widget missing Unicode 14+ shortnames (no test infra in
packages/livechat).Further comments
CI is expected red on this PR by design — it turns green as the fixes land. Test-only change, no changeset.