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,