@@ -150,6 +150,29 @@ void main() {
150150 ]);
151151 check (listedStreamIds (tester)).deepEquals ([2 , 1 , 3 , 4 , 6 , 5 ]);
152152 });
153+
154+ testWidgets ('channels with names starting with an emoji are above channel names that do not start with an emoji' , (tester) async {
155+ await setupStreamListPage (tester, subscriptions: [
156+ eg.subscription (eg.stream (streamId: 1 , name: 'Happy 😊 Stream' )),
157+ eg.subscription (eg.stream (streamId: 2 , name: 'Alpha Stream' )),
158+ eg.subscription (eg.stream (streamId: 3 , name: '🚀 Rocket Stream' )),
159+ ]);
160+ check (listedStreamIds (tester)).deepEquals ([3 , 2 , 1 ]);
161+ });
162+
163+ testWidgets ('channels with names starting with an emoji, pinned, unpinned, muted, and unmuted are sorted correctly' , (tester) async {
164+ await setupStreamListPage (tester, subscriptions: [
165+ eg.subscription (eg.stream (streamId: 1 , name: '😊 Happy Stream' ), pinToTop: true , isMuted: false ),
166+ eg.subscription (eg.stream (streamId: 2 , name: '🚀 Rocket Stream' ), pinToTop: true , isMuted: true ),
167+ eg.subscription (eg.stream (streamId: 3 , name: 'Alpha Stream' ), pinToTop: true , isMuted: false ),
168+ eg.subscription (eg.stream (streamId: 4 , name: 'Beta Stream' ), pinToTop: true , isMuted: true ),
169+ eg.subscription (eg.stream (streamId: 5 , name: '🌟 Star Stream' ), pinToTop: false , isMuted: false ),
170+ eg.subscription (eg.stream (streamId: 6 , name: '🔥 Fire Stream' ), pinToTop: false , isMuted: true ),
171+ eg.subscription (eg.stream (streamId: 7 , name: 'Gamma Stream' ), pinToTop: false , isMuted: false ),
172+ eg.subscription (eg.stream (streamId: 8 , name: 'Delta Stream' ), pinToTop: false , isMuted: true ),
173+ ]);
174+ check (listedStreamIds (tester)).deepEquals ([1 , 3 , 2 , 4 , 5 , 7 , 6 , 8 ]);
175+ });
153176 });
154177
155178 testWidgets ('unread badge shows with unreads' , (tester) async {
0 commit comments