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