Files
Reboot-Launcher/dependencies/fluent_ui-3.12.0/test/expander_test.dart
Alessandro Autiero 55467152c9 Made build portable
2022-10-07 17:23:30 +02:00

24 lines
558 B
Dart

import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_test/flutter_test.dart';
import 'app_test.dart';
void main() {
final expanderKey = GlobalKey<ExpanderState>();
testWidgets('Expander intiallyExpanded works properly', (tester) async {
await tester.pumpWidget(
wrapApp(
child: Expander(
key: expanderKey,
initiallyExpanded: true,
header: const Text('Header'),
content: const Text('Content'),
),
),
);
expect(expanderKey.currentState!.open, true);
});
}