2023-09-28 21:29:33 +00:00
|
|
|
import 'dart:io';
|
|
|
|
import 'package:integration_test/integration_test_driver_extended.dart';
|
|
|
|
|
2023-10-17 14:52:57 +00:00
|
|
|
import 'utils/grant_camera_permission.dart';
|
|
|
|
|
2023-09-28 21:29:33 +00:00
|
|
|
Future<void> main() async {
|
2023-10-17 14:52:57 +00:00
|
|
|
await grantCameraPermission();
|
|
|
|
await integrationDriver(
|
|
|
|
onScreenshot: (name, bytes, [args]) async {
|
2023-10-18 22:15:00 +00:00
|
|
|
final File image = await File('screenshots/$name.png').create(recursive: true);
|
2023-10-17 14:52:57 +00:00
|
|
|
image.writeAsBytesSync(bytes);
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
);
|
2023-09-28 21:29:33 +00:00
|
|
|
}
|