We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67842c0 commit 64cfee9Copy full SHA for 64cfee9
test/widgets/home_test.dart
@@ -291,8 +291,12 @@ void main () {
291
await tapButtonAndAwaitTransition(tester, combinedFeedMenuIconFinder);
292
293
// When we go back to the home page, the menu sheet should be gone.
294
+ final topBeforePop = topRoute;
295
+ check(topBeforePop).isNotNull().isA<MaterialAccountWidgetRoute>()
296
+ .page.isA<MessageListPage>().initNarrow.equals(CombinedFeedNarrow());
297
(await ZulipApp.navigator).pop();
- await tester.pump(const Duration(milliseconds: 350)); // wait for pop animation
298
+ await tester.pump((topBeforePop as TransitionRoute).reverseTransitionDuration);
299
+
300
check(find.byType(BottomSheet)).findsNothing();
301
});
302
0 commit comments