Skip to content

Commit 63f76e9

Browse files
test: Use transitionDurationObserver in emoji_reaction_test
Replaces hardcoded transition delays with dynamic duration handling via transitionDurationObserver.pumpPastTransition(tester). This ensures test stability when transition timings change.
1 parent 3d3b1c1 commit 63f76e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/widgets/emoji_reaction_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void main() {
434434
// request the message action sheet
435435
await tester.longPress(find.byType(MessageContent));
436436
// sheet appears onscreen; default duration of bottom-sheet enter animation
437-
await tester.pump(const Duration(milliseconds: 250));
437+
await transitionDurationObserver.pumpPastTransition(tester);
438438

439439
await store.handleEvent(RealmEmojiUpdateEvent(id: 1, realmEmoji: {
440440
'1': eg.realmEmojiItem(emojiCode: '1', emojiName: 'buzzing'),

0 commit comments

Comments
 (0)