mirror of
https://github.com/Iconica-Development/flutter_image_picker.git
synced 2025-05-18 19:53:45 +02:00
24 lines
617 B
Dart
24 lines
617 B
Dart
|
import 'dart:math';
|
||
|
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
|
||
|
import '../lib/main.dart';
|
||
|
|
||
|
void main() {
|
||
|
testWidgets("Test Main widget", ((WidgetTester tester) async {
|
||
|
// Initialization
|
||
|
final openImagePickerButton = find.byKey(const ValueKey("PickImageButton"));
|
||
|
|
||
|
// Execute Test
|
||
|
await tester.pumpWidget(const MaterialApp(
|
||
|
home:
|
||
|
ImagePickerExampleHomePage(title: 'Flutter Image Picker Example')));
|
||
|
await tester.tap(openImagePickerButton);
|
||
|
await tester.pump();
|
||
|
|
||
|
// Check Result
|
||
|
// expect(, findsOneWidget);
|
||
|
}));
|
||
|
}
|