130c1e6708
Chat stack is now the default phone chat navigation (a stored choice is kept), and on Android or iOS it stays on a wide layout (an unfolded foldable) above the active pane, where floating is ignored too. When expanded, the pile turns into a close button at its own spot and the column rises above it; while a chat is dragged that button is the remove target, replacing the separate x at the bottom. Chat widget tests start on Quick switch (they run as Android); the stack's tests choose it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
907 B
Dart
24 lines
907 B
Dart
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<void> testExecutable(FutureOr<void> Function() testMain) async {
|
|
TestWidgetsFlutterBinding.ensureInitialized()
|
|
.platformDispatcher
|
|
.accessibilityFeaturesTestValue = const FakeAccessibilityFeatures(
|
|
disableAnimations: true,
|
|
);
|
|
setUp(
|
|
() => MobileChatNavigationController.instance.debugUse(
|
|
MobileChatNavigation.quickSwitch,
|
|
),
|
|
);
|
|
await testMain();
|
|
}
|