mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 13:15:49 -06:00
18 lines
517 B
Dart
18 lines
517 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:integration_test/integration_test.dart';
|
|
|
|
void main() {
|
|
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
testWidgets('screenshot', (WidgetTester tester) async {
|
|
// Build the app.
|
|
|
|
// This is required prior to taking the screenshot (Android only).
|
|
await binding.convertFlutterSurfaceToImage();
|
|
|
|
// Trigger a frame.
|
|
await tester.pumpAndSettle();
|
|
await binding.takeScreenshot('screenshot-1');
|
|
});
|
|
}
|