From a94e63a61b49e0ac834e5a83cbe9480b467b702d Mon Sep 17 00:00:00 2001 From: Abhishek Ghaskata Date: Fri, 23 Apr 2021 23:19:03 +0530 Subject: [PATCH] Add tab 2 callback (#80805) --- packages/flutter/test/cupertino/bottom_tab_bar_test.dart | 3 +++ 1 file changed, 3 insertions(+) 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 {