A whole bunch of changes
This commit is contained in:
parent
901ec678a3
commit
956231048e
122 changed files with 5442 additions and 914 deletions
|
|
@ -101,4 +101,28 @@ void main() {
|
|||
|
||||
expect(find.text('Vehicle already exists'), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets(
|
||||
'tapping the VIN scan icon shows "VIN From" with an info button explaining where to find one',
|
||||
(tester) async {
|
||||
await pumpAddVehicleScreen(tester);
|
||||
|
||||
await tester.tap(find.byTooltip('Scan VIN from a photo'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('VIN From'), findsOneWidget);
|
||||
expect(find.text('Take Photo'), findsOneWidget);
|
||||
expect(find.text('Choose from Gallery'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byIcon(Icons.info_outline));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Where to find the VIN'), findsOneWidget);
|
||||
expect(find.byType(Image), findsNWidgets(2), reason: 'door jamb + windshield examples');
|
||||
|
||||
await tester.tap(find.text('Close'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Where to find the VIN'), findsNothing);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue