import 'dart:async'; import 'package:flutter_test/flutter_test.dart'; import 'package:pipelines_app/features/chat/stack/mobile_chat_navigation.dart'; /// Functional chat tests settle asynchronous state with reduced motion. Tests /// covering animation explicitly opt back in and pump known frame durations. /// /// Tests run as Android, where the Chat stack (the default) also shows on a /// wide layout. Each test starts on Quick switch, the layout most of them /// describe; the stack's own tests choose it. Future testExecutable(FutureOr Function() testMain) async { TestWidgetsFlutterBinding.ensureInitialized() .platformDispatcher .accessibilityFeaturesTestValue = const FakeAccessibilityFeatures( disableAnimations: true, ); setUp( () => MobileChatNavigationController.instance.debugUse( MobileChatNavigation.quickSwitch, ), ); await testMain(); }