From c4fd047d60266540234549b4d22d535e6852909c Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Thu, 11 Jul 2024 18:28:02 +0300 Subject: [PATCH] feature(registration): temp remove test --- test/add_info_test.dart | 54 ----------------------- test/allergies_test.dart | 54 ----------------------- test/auth_test.dart | 41 ----------------- test/blood_pressure_test.dart | 54 ----------------------- test/body_circumferences_test.dart | 54 ----------------------- test/city_of_living_test.dart | 54 ----------------------- test/credentials_test.dart | 54 ----------------------- test/date_of_birth_test.dart | 54 ----------------------- test/diary_test.dart | 71 ------------------------------ test/favorite_foods_test.dart | 54 ----------------------- test/favorite_sports_test.dart | 55 ----------------------- test/gender_test.dart | 55 ----------------------- test/height_test.dart | 55 ----------------------- test/language_select_test.dart | 26 ----------- test/launch_test.dart | 15 ------- test/medicine_intake_test.dart | 55 ----------------------- test/name_test.dart | 55 ----------------------- test/profile_test.dart | 26 ----------- test/settings_test.dart | 26 ----------- test/weight_test.dart | 55 ----------------------- 20 files changed, 967 deletions(-) delete mode 100644 test/add_info_test.dart delete mode 100644 test/allergies_test.dart delete mode 100644 test/auth_test.dart delete mode 100644 test/blood_pressure_test.dart delete mode 100644 test/body_circumferences_test.dart delete mode 100644 test/city_of_living_test.dart delete mode 100644 test/credentials_test.dart delete mode 100644 test/date_of_birth_test.dart delete mode 100644 test/diary_test.dart delete mode 100644 test/favorite_foods_test.dart delete mode 100644 test/favorite_sports_test.dart delete mode 100644 test/gender_test.dart delete mode 100644 test/height_test.dart delete mode 100644 test/language_select_test.dart delete mode 100644 test/launch_test.dart delete mode 100644 test/medicine_intake_test.dart delete mode 100644 test/name_test.dart delete mode 100644 test/profile_test.dart delete mode 100644 test/settings_test.dart delete mode 100644 test/weight_test.dart diff --git a/test/add_info_test.dart b/test/add_info_test.dart deleted file mode 100644 index 86379dd..0000000 --- a/test/add_info_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/additional_information_screen/additional_information_screen.dart'; -import 'package:eatvio_app/presentation/registration/additional_information_screen/bloc/additional_information_bloc.dart'; -import 'package:eatvio_app/presentation/registration/additional_information_screen/models/additional_information_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = AdditionalInformationBloc(AdditionalInformationState( - additionalInformationModelObj: AdditionalInformationModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: AdditionalInformationScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/allergies_test.dart b/test/allergies_test.dart deleted file mode 100644 index d0a7832..0000000 --- a/test/allergies_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/allergies_screen/allergies_screen.dart'; -import 'package:eatvio_app/presentation/registration/allergies_screen/bloc/allergies_bloc.dart'; -import 'package:eatvio_app/presentation/registration/allergies_screen/models/allergies_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = AllergiesBloc(AllergiesState( - allergiesModelObj: AllergiesModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: AllergiesScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/auth_test.dart b/test/auth_test.dart deleted file mode 100644 index e131dc8..0000000 --- a/test/auth_test.dart +++ /dev/null @@ -1,41 +0,0 @@ -import 'package:eatvio_app/core/app_export.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:flutter_localizations/flutter_localizations.dart'; -import 'package:eatvio_app/presentation/auth/auth_screen/auth_screen.dart'; -import 'package:eatvio_app/presentation/auth/auth_screen/bloc/auth_bloc.dart'; -import 'package:eatvio_app/presentation/auth/auth_screen/models/auth_model.dart'; - -void main() { - group('AuthScreen', () { - testWidgets('renders AuthScreen with initial state', - (WidgetTester tester) async { - final authBloc = AuthBloc(AuthState(authModelObj: AuthModel())); - - await tester.pumpWidget( - MaterialApp( - localizationsDelegates: [ - AppLocalizationDelegate(), - GlobalMaterialLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - ], - supportedLocales: [ - Locale( - 'ru', - '', - ), - ], - home: BlocProvider( - create: (context) => authBloc, - child: Builder( - builder: (context) { - return AuthScreen(); - }, - ), - ), - ), - ); - }); - }); -} diff --git a/test/blood_pressure_test.dart b/test/blood_pressure_test.dart deleted file mode 100644 index a8c70db..0000000 --- a/test/blood_pressure_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/blood_pressure_screen/blood_pressure_screen.dart'; -import 'package:eatvio_app/presentation/registration/blood_pressure_screen/bloc/blood_pressure_bloc.dart'; -import 'package:eatvio_app/presentation/registration/blood_pressure_screen/models/blood_pressure_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = BloodPressureBloc(BloodPressureState( - bloodPressureModelObj: BloodPressureModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: BloodPressureScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/body_circumferences_test.dart b/test/body_circumferences_test.dart deleted file mode 100644 index 339c3b8..0000000 --- a/test/body_circumferences_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/body_circumferences_screen/body_circumferences_screen.dart'; -import 'package:eatvio_app/presentation/registration/body_circumferences_screen/bloc/body_circumferences_bloc.dart'; -import 'package:eatvio_app/presentation/registration/body_circumferences_screen/models/body_circumferences_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = BodyCircumferencesBloc(BodyCircumferencesState( - bodyCircumferencesModelObj: BodyCircumferencesModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: BodyCircumferencesScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/city_of_living_test.dart b/test/city_of_living_test.dart deleted file mode 100644 index 1a6c18b..0000000 --- a/test/city_of_living_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/city_of_living_screen/city_of_living_screen.dart'; -import 'package:eatvio_app/presentation/registration/city_of_living_screen/bloc/city_of_living_bloc.dart'; -import 'package:eatvio_app/presentation/registration/city_of_living_screen/models/city_of_living_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = CityOfLivingBloc(CityOfLivingState( - cityOfLivingModelObj: CityOfLivingModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: CityOfLivingScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/credentials_test.dart b/test/credentials_test.dart deleted file mode 100644 index a82cd41..0000000 --- a/test/credentials_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/credentials_screen/credentials_screen.dart'; -import 'package:eatvio_app/presentation/registration/credentials_screen/bloc/credentials_bloc.dart'; -import 'package:eatvio_app/presentation/registration/credentials_screen/models/credentials_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = CredentialsBloc(CredentialsState( - credentialsModelObj: CredentialsModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: CredentialsScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/date_of_birth_test.dart b/test/date_of_birth_test.dart deleted file mode 100644 index 8ce0a1f..0000000 --- a/test/date_of_birth_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/date_of_birth_screen/date_of_birth_screen.dart'; -import 'package:eatvio_app/presentation/registration/date_of_birth_screen/bloc/date_of_birth_bloc.dart'; -import 'package:eatvio_app/presentation/registration/date_of_birth_screen/models/date_of_birth_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = DateOfBirthBloc(DateOfBirthState( - dateOfBirthModelObj: DateOfBirthModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: DateOfBirthScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/diary_test.dart b/test/diary_test.dart deleted file mode 100644 index 56d1c58..0000000 --- a/test/diary_test.dart +++ /dev/null @@ -1,71 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:eatvio_app/presentation/diary/diary_edit_screen/diary_edit_screen.dart'; -import 'package:eatvio_app/presentation/diary/diary_edit_screen/bloc/diary_edit_bloc.dart'; -import 'package:eatvio_app/presentation/diary/diary_edit_screen/models/diary_edit_model.dart'; - -void main() { - group('DiaryEditScreen', () { - /*testWidgets('renders CircularProgressIndicator when in initial state', - (WidgetTester tester) async { - await tester.pumpWidget( - MaterialApp( - home: DiaryEditScreen(), - ), - ); - });*/ - - testWidgets('renders _buildDiaryEditScreen when in loaded state', (WidgetTester tester) async { - final diaryEditBloc = DiaryEditBloc(DiaryEditState(diaryEditModelObj: DiaryEditModel())); - final loadedState = DiaryEditLoadedState( - diaryId: 1, - selectedSatiety: 4, - autocompleteList: [], - photos: [], - portions: [], - wakeupExpanded: false, - moderationExpanded: false, - recommendedChartValues: [10, 10, 10, 10], - consumedChartValues: [1, 2, 3, 4], - moodExpanded: false,); - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: diaryEditBloc, - child: DiaryEditScreen(), - ), - ), - ); - - diaryEditBloc.emit(loadedState); - await tester.pump(); - - //expect(find.byType(_buildDiaryEditScreen), findsOneWidget); - }); - - /*testWidgets('renders error message when in error state', - (WidgetTester tester) async { - final diaryEditBloc = - DiaryEditBloc(DiaryEditState(diaryEditModelObj: DiaryEditModel())); - final errorState = DiaryEditErrorState("error"); - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: diaryEditBloc, - child: DiaryEditScreen(), - ), - ), - ); - - diaryEditBloc.emit(errorState); - await tester.pump(); - - expect(find.text('Ошибка'), findsOneWidget); - });*/ - - // Add more tests for other scenarios if needed - }); -} diff --git a/test/favorite_foods_test.dart b/test/favorite_foods_test.dart deleted file mode 100644 index 6364726..0000000 --- a/test/favorite_foods_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -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/favorite_foods_screen/favorite_foods_screen.dart'; -import 'package:eatvio_app/presentation/registration/favorite_foods_screen/bloc/favorite_foods_bloc.dart'; -import 'package:eatvio_app/presentation/registration/favorite_foods_screen/models/favorite_foods_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = FavoriteFoodsBloc(FavoriteFoodsState( - favoriteFoodsModelObj: FavoriteFoodsModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: FavoriteFoodsScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/favorite_sports_test.dart b/test/favorite_sports_test.dart deleted file mode 100644 index 1c7311e..0000000 --- a/test/favorite_sports_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -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/favorite_sports_screen/favorite_sports_screen.dart'; -import 'package:eatvio_app/presentation/registration/favorite_sports_screen/bloc/favorite_sports_bloc.dart'; -import 'package:eatvio_app/presentation/registration/favorite_sports_screen/models/favorite_sports_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = FavoriteSportsBloc(FavoriteSportsState( - favoriteSportsModelObj: FavoriteSportsModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "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: FavoriteSportsScreen(), - ), - ), - ); - }); - }); -} -//sports \ No newline at end of file diff --git a/test/gender_test.dart b/test/gender_test.dart deleted file mode 100644 index 94ab621..0000000 --- a/test/gender_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -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/gender_screen/gender_screen.dart'; -import 'package:eatvio_app/presentation/registration/gender_screen/bloc/gender_bloc.dart'; -import 'package:eatvio_app/presentation/registration/gender_screen/models/gender_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = GenderBloc(GenderState( - genderModelObj: GenderModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "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: GenderScreen(), - ), - ), - ); - }); - }); -} -//sports \ No newline at end of file diff --git a/test/height_test.dart b/test/height_test.dart deleted file mode 100644 index cd512ed..0000000 --- a/test/height_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -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 \ No newline at end of file diff --git a/test/language_select_test.dart b/test/language_select_test.dart deleted file mode 100644 index 15582cf..0000000 --- a/test/language_select_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -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/language_select_screen/language_select_screen.dart'; -import 'package:eatvio_app/presentation/registration/language_select_screen/bloc/language_select_bloc.dart'; -import 'package:eatvio_app/presentation/registration/language_select_screen/models/language_select_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = LanguageSelectBloc(LanguageSelectState( - languageSelectModelObj: - LanguageSelectModel(),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: LanguageSelectScreen(), - ), - ), - ); - }); - }); -} -//sports \ No newline at end of file diff --git a/test/launch_test.dart b/test/launch_test.dart deleted file mode 100644 index 4f1eafe..0000000 --- a/test/launch_test.dart +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:flutter_test/flutter_test.dart'; -import 'package:eatvio_app/main.dart' as app; - -void main() { - testWidgets('Smoke test', (WidgetTester tester) async { - // Запустить приложение - app.main(); - - // Подождать, пока приложение загрузится - await tester.pumpAndSettle(); - - // Проверить, что нет ошибок - expect(tester.takeException(), isNull); - }); -} diff --git a/test/medicine_intake_test.dart b/test/medicine_intake_test.dart deleted file mode 100644 index eae83c1..0000000 --- a/test/medicine_intake_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -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/medicine_intake_screen/medicine_intake_screen.dart'; -import 'package:eatvio_app/presentation/registration/medicine_intake_screen/bloc/medicine_intake_bloc.dart'; -import 'package:eatvio_app/presentation/registration/medicine_intake_screen/models/medicine_intake_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = MedicineIntakeBloc(MedicineIntakeState( - medicineIntakeModelObj: MedicineIntakeModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: MedicineIntakeScreen(), - ), - ), - ); - }); - }); -} -//sports \ No newline at end of file diff --git a/test/name_test.dart b/test/name_test.dart deleted file mode 100644 index 1e271cb..0000000 --- a/test/name_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -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/name_screen/name_screen.dart'; -import 'package:eatvio_app/presentation/registration/name_screen/bloc/name_bloc.dart'; -import 'package:eatvio_app/presentation/registration/name_screen/models/name_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = NameBloc(NameState( - nameModelObj: NameModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: NameScreen(), - ), - ), - ); - }); - }); -} -//sports \ No newline at end of file diff --git a/test/profile_test.dart b/test/profile_test.dart deleted file mode 100644 index cf0ebc4..0000000 --- a/test/profile_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:eatvio_app/core/app_export.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:eatvio_app/presentation/profile/my_profile_screen/my_profile_screen.dart'; -import 'package:eatvio_app/presentation/profile/my_profile_screen/bloc/my_profile_bloc.dart'; -import 'package:eatvio_app/presentation/profile/my_profile_screen/models/my_profile_model.dart'; - -void main() { - group('MyProfileScreen', () { - testWidgets('renders CircularProgressIndicator in initial state', - (WidgetTester tester) async { - final myProfileBloc = MyProfileBloc(MyProfileState( - myProfileModelObj: - MyProfileModel(),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: MyProfileScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/settings_test.dart b/test/settings_test.dart deleted file mode 100644 index c605878..0000000 --- a/test/settings_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:eatvio_app/presentation/profile/my_profile_screen/my_settings_screen.dart'; -import 'package:eatvio_app/presentation/profile/my_profile_screen/bloc/my_profile_bloc.dart'; -import 'package:eatvio_app/presentation/profile/my_profile_screen/models/my_profile_model.dart'; - -void main() { - group('MyProfileScreen', () { - testWidgets('renders CircularProgressIndicator in initial state', - (WidgetTester tester) async { - final myProfileBloc = MyProfileBloc(MyProfileState( - myProfileModelObj: - MyProfileModel(),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: MySettingsScreen(), - ), - ), - ); - }); - }); -} diff --git a/test/weight_test.dart b/test/weight_test.dart deleted file mode 100644 index e5f9fe0..0000000 --- a/test/weight_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -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/weight_screen/weight_screen.dart'; -import 'package:eatvio_app/presentation/registration/weight_screen/bloc/weight_bloc.dart'; -import 'package:eatvio_app/presentation/registration/weight_screen/models/weight_model.dart'; - -void main() { - group('AdditionalInfoScreen', () { - testWidgets('renders screen in initial state', (WidgetTester tester) async { - final myProfileBloc = WeightBloc(WeightState( - weightModelObj: WeightModel( - userRegistrationSheet: UserRegistrationSheet( - name: "name", - firstName: "firstName", - lastName: "lastName", - email: "email", - password: "password", - passwordConfirmation: "passwordConfirmation", - termsAccepted: "termsAccepted", - birthdate: "birthdate", - gender: "gender", - country: "country", - city: "city", - lang: "lang", - weight: "weight", - height: "height", - chestCircumference: 'asdasd', - waistCircumference: "waistCircumference", - hipCircumference: "hipCircumference", - bloodPressureUp: "bloodPressureUp", - bloodPressureDown: "bloodPressureDown", - hasHypo: "hasHypo", - hasHyper: "hasHyper", - aboutAllergy: "aboutAllergy", - aboutTakingPils: "aboutTakingPils", - aboutSportHobbies: "aboutSportHobbies", - favoriteFoods: "favoriteFoods", - unfavoriteFoods: "unfavoriteFoods", - additionalInfo: - "additionalInfo",),),),); // Ensure that MyProfileModel is non-nullable - - await tester.pumpWidget( - MaterialApp( - home: BlocProvider.value( - value: myProfileBloc, - child: WeightScreen(), - ), - ), - ); - }); - }); -} -//sports \ No newline at end of file