mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-04-05 00:50:40 +00:00
Compare commits
2 commits
0b83f68eaa
...
6cd15e6f1f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6cd15e6f1f | ||
![]() |
4a1b1c2320 |
1 changed files with 14 additions and 11 deletions
|
@ -2,6 +2,7 @@ import 'dart:convert';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.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/ev_source_type.dart';
|
||||||
import 'package:lightmeter/data/models/metering_screen_layout_config.dart';
|
import 'package:lightmeter/data/models/metering_screen_layout_config.dart';
|
||||||
import 'package:lightmeter/data/shared_prefs_service.dart';
|
import 'package:lightmeter/data/shared_prefs_service.dart';
|
||||||
|
@ -109,17 +110,17 @@ void testE2E(String description) {
|
||||||
);
|
);
|
||||||
|
|
||||||
/// 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 _expectMeteringStateAndMeasure(
|
// await _expectMeteringStateAndMeasure(
|
||||||
tester,
|
// tester,
|
||||||
equipmentProfile: mockEquipmentProfiles[0],
|
// equipmentProfile: mockEquipmentProfiles[0],
|
||||||
film: mockFilms[0],
|
// film: mockFilms[0],
|
||||||
fastest: 'f/1.8 - 1/200',
|
// fastest: 'f/1.8 - 1/200',
|
||||||
slowest: 'f/16 - 1/2.5',
|
// slowest: 'f/16 - 1/2.5',
|
||||||
iso: '400',
|
// iso: '400',
|
||||||
nd: '2',
|
// nd: '2',
|
||||||
ev: mockPhotoEv100 + 2 - 1,
|
// ev: mockPhotoEv100 + 2 - 1,
|
||||||
);
|
// );
|
||||||
|
|
||||||
/// 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);
|
||||||
|
@ -306,6 +307,8 @@ Future<void> _expectMeteringState(
|
||||||
expectExposurePairsListItem(tester, slowest.split(' - ')[0], slowest.split(' - ')[1]);
|
expectExposurePairsListItem(tester, slowest.split(' - ')[0], slowest.split(' - ')[1]);
|
||||||
expectMeasureButton(ev);
|
expectMeasureButton(ev);
|
||||||
expect(find.text(equipmentProfile.lensZoom.toZoom()), findsOneWidget);
|
expect(find.text(equipmentProfile.lensZoom.toZoom()), findsOneWidget);
|
||||||
|
await IntegrationTestWidgetsFlutterBinding.instance.takeScreenshot('');
|
||||||
|
await tester.pumpAndSettle();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _expectMeteringStateAndMeasure(
|
Future<void> _expectMeteringStateAndMeasure(
|
||||||
|
|
Loading…
Reference in a new issue