import 'package:eatvio_app/data/models/userRegistrationModel/user_registration_model.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:eatvio_app/presentation/registration/height_screen/height_screen.dart'; import 'package:eatvio_app/presentation/registration/height_screen/bloc/height_bloc.dart'; import 'package:eatvio_app/presentation/registration/height_screen/models/height_model.dart'; void main() { group('AdditionalInfoScreen', () { testWidgets('renders screen in initial state', (WidgetTester tester) async { final myProfileBloc = HeightBloc(HeightState( heightModelObj: HeightModel( userRegistrationSheet: UserRegistrationSheet( name: "name", firstName: "firstName", lastName: "lastName", email: "email", password: "password", passwordConfirmation: "passwordConfirmation", termsAccepted: "termsAccepted", birthdate: "birthdate", height: "height", country: "country", city: "city", lang: "lang", weight: "weight", gender: "height", chestCircumference: 'asdasd', waistCircumference: "waistCircumference", hipCircumference: "hipCircumference", bloodPressureUp: "bloodPressureUp", bloodPressureDown: "bloodPressureDown", hasHypo: "hasHypo", hasHyper: "hasHyper", aboutAllergy: "aboutAllergy", aboutTakingPils: "aboutTakingPils", aboutSportHobbies: "aboutSportHobbies", favoriteFoods: "favoriteSports", unfavoriteFoods: "unfavoriteSports", additionalInfo: "additionalInfo")))); // Ensure that MyProfileModel is non-nullable await tester.pumpWidget( MaterialApp( home: BlocProvider.value( value: myProfileBloc, child: HeightScreen(), ), ), ); }); }); } //sports