Updating screenshot driver

This commit is contained in:
Miroslav Mazel
2023-11-05 23:12:07 +01:00
parent c81c467d7a
commit 46e35e0467

View File

@@ -6,7 +6,8 @@ import 'package:integration_test/integration_test_driver_extended.dart';
Future<void> main() async {
try {
await integrationDriver(
onScreenshot: (String screenshotName, List<int> screenshotBytes) async {
onScreenshot: (String screenshotName, List<int> screenshotBytes,
[Map<String, Object?>? _]) async {
final File image = await File(screenshotName).create(recursive: true);
image.writeAsBytesSync(screenshotBytes);
return true;