From a838912f5c06e9bec378e27deba46fae67df48cf Mon Sep 17 00:00:00 2001 From: dab246 Date: Tue, 10 Mar 2026 14:57:21 +0700 Subject: [PATCH] TF-4367 Add test case for `Emails with Re\u00A0: / Tr\u00A0:.` --- .../extensions/get_subject_composer_test.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/features/composer/presentation/extensions/get_subject_composer_test.dart b/test/features/composer/presentation/extensions/get_subject_composer_test.dart index 7a321d1d7..2a71f8008 100644 --- a/test/features/composer/presentation/extensions/get_subject_composer_test.dart +++ b/test/features/composer/presentation/extensions/get_subject_composer_test.dart @@ -65,6 +65,19 @@ void main() { expect(result, subjectWithPrefix); }); + + test('Reply: does not dedupe legacy French NBSP prefix', () { + const original = 'Re\u00A0: Legacy subject'; + final result = EmailActionType.reply.getSubjectComposer(null, original); + expect(result, 'Re: $original'); + }); + + test('Forward: does not dedupe legacy French NBSP prefix', () { + const original = 'Tr\u00A0: Legacy subject'; + final result = + EmailActionType.forward.getSubjectComposer(null, original); + expect(result, 'Fwd: $original'); + }); }); group('forward actions', () {