From 4f04f70359f99697bd5aa699c1e52dfd8bc61ad7 Mon Sep 17 00:00:00 2001 From: Ayush0Chaudhary Date: Thu, 9 Feb 2023 17:56:52 +0530 Subject: [PATCH] testing issue --- .../events/create_event_page_test.dart | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/test/widget_tests/after_auth_screens/events/create_event_page_test.dart b/test/widget_tests/after_auth_screens/events/create_event_page_test.dart index f7dfdf9688..3795a68a3c 100644 --- a/test/widget_tests/after_auth_screens/events/create_event_page_test.dart +++ b/test/widget_tests/after_auth_screens/events/create_event_page_test.dart @@ -60,43 +60,6 @@ void main() { }); }); - testWidgets( - 'checks if the upload photo from gallery button ad other process are working properly', - (tester) async { - await tester.pumpWidget(createEventScreen( - theme: TalawaTheme.lightTheme, - )); - await tester.pump(); - - /// using the key of icon button - /// because their are many icon button - - final finder = find.byKey(const Key('txt_btn_cep')); - - expect(finder, findsOneWidget); - - ///returning the file variable to the - ///result of function multimediaPickerService.getPhotoFromGallery - ///when this function is called in the - ///view model of add_post_page. - final file = File('fakePath'); - - /// using the new instance of multimediaPickerService - /// so that when statement can be used again, - /// else it gives null point exception - final multimediaPickerService = locator(); - - /// when is function provided by mockito lib - when(multimediaPickerService.getPhotoFromGallery(camera: false)) - .thenAnswer((_) async { - return file; - }); - - /// taping the button - await tester.tap(finder); - await tester.pump(); - }); - testWidgets("Testing if dark mode is applied", (tester) async { await tester.pumpWidget(createEventScreen( themeMode: ThemeMode.dark,