Skip to content

Commit a4f2270

Browse files
committed
action_sheet test: Make the app-bar topic-row finder more precise
1 parent 7b25db0 commit a4f2270

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/widgets/action_sheet_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ void main() {
149149
// global store, per-account store, and message list get loaded
150150
await tester.pumpAndSettle();
151151

152-
await tester.longPress(find.byType(ZulipAppBar));
152+
final topicRow = find.descendant(of: find.byType(ZulipAppBar), matching: find.text(topic));
153+
await tester.longPress(topicRow);
153154
// sheet appears onscreen; default duration of bottom-sheet enter animation
154155
await tester.pump(const Duration(milliseconds: 250));
155156
check(find.byType(BottomSheet)).findsOne();

0 commit comments

Comments
 (0)