mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-04-03 16:10:41 +00:00
cleanup
This commit is contained in:
parent
6cd15e6f1f
commit
ee30eb0236
2 changed files with 1 additions and 27 deletions
|
@ -2,7 +2,6 @@ import 'dart:convert';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
import 'package:lightmeter/data/models/ev_source_type.dart';
|
||||
import 'package:lightmeter/data/models/metering_screen_layout_config.dart';
|
||||
import 'package:lightmeter/data/shared_prefs_service.dart';
|
||||
|
@ -307,8 +306,6 @@ Future<void> _expectMeteringState(
|
|||
expectExposurePairsListItem(tester, slowest.split(' - ')[0], slowest.split(' - ')[1]);
|
||||
expectMeasureButton(ev);
|
||||
expect(find.text(equipmentProfile.lensZoom.toZoom()), findsOneWidget);
|
||||
await IntegrationTestWidgetsFlutterBinding.instance.takeScreenshot('');
|
||||
await tester.pumpAndSettle();
|
||||
}
|
||||
|
||||
Future<void> _expectMeteringStateAndMeasure(
|
||||
|
|
|
@ -1,28 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:integration_test/integration_test_driver_extended.dart';
|
||||
import 'package:uuid/v4.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
await integrationDriver(
|
||||
onScreenshot: (name, bytes, [_]) async {
|
||||
final id = const UuidV4().generate();
|
||||
final path = 'e2e_diagnostics/screenshot_$id.png';
|
||||
final file = await File(path).create(recursive: true);
|
||||
file.writeAsBytesSync(bytes);
|
||||
|
||||
final result = await Process.run(
|
||||
"curl",
|
||||
[
|
||||
"-F",
|
||||
'file=@${file.path}',
|
||||
"https://shot.withfra.me/new",
|
||||
],
|
||||
);
|
||||
stdout.write(result.stdout);
|
||||
stderr.write(result.stderr);
|
||||
|
||||
return true;
|
||||
},
|
||||
);
|
||||
await integrationDriver();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue