mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-04-04 08:30:41 +00:00
removed diagnostic screenshots
This commit is contained in:
parent
224bb9659b
commit
0b83f68eaa
2 changed files with 2 additions and 12 deletions
|
@ -27,7 +27,7 @@ import 'mocks/paid_features_mock.dart';
|
||||||
import 'utils/expectations.dart';
|
import 'utils/expectations.dart';
|
||||||
|
|
||||||
@isTest
|
@isTest
|
||||||
void testE2E(String description, {required Future<void> Function() screenshotCallback}) {
|
void testE2E(String description) {
|
||||||
setUp(() async {
|
setUp(() async {
|
||||||
SharedPreferences.setMockInitialValues({
|
SharedPreferences.setMockInitialValues({
|
||||||
/// Metering values
|
/// Metering values
|
||||||
|
@ -76,7 +76,6 @@ void testE2E(String description, {required Future<void> Function() screenshotCal
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
await tester.enterProfileName(mockEquipmentProfiles[1].name);
|
await tester.enterProfileName(mockEquipmentProfiles[1].name);
|
||||||
await tester.setApertureValues(mockEquipmentProfiles[1].apertureValues);
|
await tester.setApertureValues(mockEquipmentProfiles[1].apertureValues);
|
||||||
await screenshotCallback();
|
|
||||||
await tester.setZoomValue(mockEquipmentProfiles[1].lensZoom);
|
await tester.setZoomValue(mockEquipmentProfiles[1].lensZoom);
|
||||||
expect(find.text('x5.02'), findsOneWidget);
|
expect(find.text('x5.02'), findsOneWidget);
|
||||||
expect(find.text('f/3.5 - f/22'), findsOneWidget);
|
expect(find.text('f/3.5 - f/22'), findsOneWidget);
|
||||||
|
@ -98,7 +97,6 @@ void testE2E(String description, {required Future<void> Function() screenshotCal
|
||||||
expectPickerTitle<FilmPicker>(mockFilms[0].name);
|
expectPickerTitle<FilmPicker>(mockFilms[0].name);
|
||||||
expectPickerTitle<IsoValuePicker>('400');
|
expectPickerTitle<IsoValuePicker>('400');
|
||||||
await tester.takePhoto();
|
await tester.takePhoto();
|
||||||
await screenshotCallback();
|
|
||||||
await _expectMeteringState(
|
await _expectMeteringState(
|
||||||
tester,
|
tester,
|
||||||
equipmentProfile: mockEquipmentProfiles[0],
|
equipmentProfile: mockEquipmentProfiles[0],
|
||||||
|
@ -112,7 +110,6 @@ void testE2E(String description, {required Future<void> Function() screenshotCal
|
||||||
|
|
||||||
/// Add ND to shoot another scene
|
/// Add ND to shoot another scene
|
||||||
await tester.openPickerAndSelect<NdValuePicker, NdValue>('2');
|
await tester.openPickerAndSelect<NdValuePicker, NdValue>('2');
|
||||||
await screenshotCallback();
|
|
||||||
await _expectMeteringStateAndMeasure(
|
await _expectMeteringStateAndMeasure(
|
||||||
tester,
|
tester,
|
||||||
equipmentProfile: mockEquipmentProfiles[0],
|
equipmentProfile: mockEquipmentProfiles[0],
|
||||||
|
@ -127,7 +124,6 @@ void testE2E(String description, {required Future<void> Function() screenshotCal
|
||||||
/// Select another lens without ND
|
/// Select another lens without ND
|
||||||
await tester.openPickerAndSelect<EquipmentProfilePicker, EquipmentProfile>(mockEquipmentProfiles[1].name);
|
await tester.openPickerAndSelect<EquipmentProfilePicker, EquipmentProfile>(mockEquipmentProfiles[1].name);
|
||||||
await tester.openPickerAndSelect<NdValuePicker, NdValue>('None');
|
await tester.openPickerAndSelect<NdValuePicker, NdValue>('None');
|
||||||
await screenshotCallback();
|
|
||||||
await _expectMeteringStateAndMeasure(
|
await _expectMeteringStateAndMeasure(
|
||||||
tester,
|
tester,
|
||||||
equipmentProfile: mockEquipmentProfiles[1],
|
equipmentProfile: mockEquipmentProfiles[1],
|
||||||
|
@ -142,7 +138,6 @@ void testE2E(String description, {required Future<void> Function() screenshotCal
|
||||||
/// Set another film and another ISO
|
/// Set another film and another ISO
|
||||||
await tester.openPickerAndSelect<IsoValuePicker, IsoValue>('200');
|
await tester.openPickerAndSelect<IsoValuePicker, IsoValue>('200');
|
||||||
await tester.openPickerAndSelect<FilmPicker, Film>(mockFilms[1].name);
|
await tester.openPickerAndSelect<FilmPicker, Film>(mockFilms[1].name);
|
||||||
await screenshotCallback();
|
|
||||||
await _expectMeteringStateAndMeasure(
|
await _expectMeteringStateAndMeasure(
|
||||||
tester,
|
tester,
|
||||||
equipmentProfile: mockEquipmentProfiles[1],
|
equipmentProfile: mockEquipmentProfiles[1],
|
||||||
|
|
|
@ -9,10 +9,5 @@ void main() {
|
||||||
|
|
||||||
testPurchases('Purchase & refund premium features');
|
testPurchases('Purchase & refund premium features');
|
||||||
testToggleLayoutFeatures('Toggle metering screen layout features');
|
testToggleLayoutFeatures('Toggle metering screen layout features');
|
||||||
testE2E(
|
testE2E('e2e');
|
||||||
'e2e',
|
|
||||||
screenshotCallback: () async {
|
|
||||||
await IntegrationTestWidgetsFlutterBinding.instance.takeScreenshot('screenshot_e2e');
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue