From ee30eb023685118f750455b5c5698fcf2a37d1a5 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Tue, 1 Apr 2025 22:27:24 +0200 Subject: [PATCH] cleanup --- integration_test/e2e_test.dart | 3 --- test_driver/integration_driver.dart | 25 +------------------------ 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/integration_test/e2e_test.dart b/integration_test/e2e_test.dart index 9707f39..311b9a5 100644 --- a/integration_test/e2e_test.dart +++ b/integration_test/e2e_test.dart @@ -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 _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 _expectMeteringStateAndMeasure( diff --git a/test_driver/integration_driver.dart b/test_driver/integration_driver.dart index e5c7621..82b5a06 100644 --- a/test_driver/integration_driver.dart +++ b/test_driver/integration_driver.dart @@ -1,28 +1,5 @@ -import 'dart:io'; - import 'package:integration_test/integration_test_driver_extended.dart'; -import 'package:uuid/v4.dart'; Future 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(); }