diff --git a/packages/flutter/test/cupertino/bottom_tab_bar_test.dart b/packages/flutter/test/cupertino/bottom_tab_bar_test.dart index ac83d6de27..5dc0b1f45a 100644 --- a/packages/flutter/test/cupertino/bottom_tab_bar_test.dart +++ b/packages/flutter/test/cupertino/bottom_tab_bar_test.dart @@ -388,6 +388,9 @@ Future main() async { await tester.tap(find.text('Tab 1')); expect(callbackTab, 0); + + await tester.tap(find.text('Tab 2')); + expect(callbackTab, 1); }); testWidgets('tabs announce semantics', (WidgetTester tester) async {