Skip to content

Commit

Permalink
disable screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldar2021 committed Nov 25, 2023
1 parent 7a53c94 commit 68601dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ SPEC CHECKSUMS:
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b

PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048

Expand Down
20 changes: 10 additions & 10 deletions app/test_driver/extensions/screenshot_driver.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'dart:io';
// import 'dart:io';

import 'package:flutter_driver/flutter_driver.dart';

Expand All @@ -8,14 +8,14 @@ extension ScreenshotExtension on FlutterDriver {
String directory = '../screenshots',
bool waitUntilNoTransientCallbacks = true,
}) async {
if (waitUntilNoTransientCallbacks) {
await this.waitUntilNoTransientCallbacks(timeout: const Duration(seconds: 30));
}
final pixels = await screenshot();
final directoryPath = directory.endsWith('/') ? directory : '$directory/';
final file = await File('$directoryPath$name.png').create(recursive: true);
await file.writeAsBytes(pixels);
// ignore: avoid_print
print('Screenshot $name');
// if (waitUntilNoTransientCallbacks) {
// await this.waitUntilNoTransientCallbacks(timeout: const Duration(seconds: 30));
// }
// final pixels = await screenshot();
// final directoryPath = directory.endsWith('/') ? directory : '$directory/';
// final file = await File('$directoryPath$name.png').create(recursive: true);
// await file.writeAsBytes(pixels);
// // ignore: avoid_print
// print('Screenshot $name');
}
}

0 comments on commit 68601dd

Please sign in to comment.