mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
22 lines
614 B
Dart
22 lines
614 B
Dart
import 'package:fluent_ui/fluent_ui.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'app_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('DropdownButton leading is shown correctly', (tester) async {
|
|
await tester.pumpWidget(wrapApp(
|
|
child: DropDownButton(
|
|
items: [
|
|
MenuFlyoutItem(text: const Text('one'), onPressed: () {}),
|
|
MenuFlyoutItem(text: const Text('two'), onPressed: () {}),
|
|
],
|
|
leading: const Icon(FluentIcons.number),
|
|
title: const Text('Numbers'),
|
|
),
|
|
));
|
|
|
|
expect(find.byIcon(FluentIcons.number), findsOneWidget);
|
|
});
|
|
}
|