This commit is contained in:
Vadim 2025-04-01 22:27:24 +02:00
parent 6cd15e6f1f
commit ee30eb0236
2 changed files with 1 additions and 27 deletions

View file

@ -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(

View file

@ -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();
}