From 431bd5871d10e68f482c11443ce29ddba7d095ee Mon Sep 17 00:00:00 2001 From: Ayan Date: Thu, 21 Nov 2024 17:58:27 +0530 Subject: [PATCH] Code Improvement --- .../after_auth_screens/feed/organization_feed_test.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/widget_tests/after_auth_screens/feed/organization_feed_test.dart b/test/widget_tests/after_auth_screens/feed/organization_feed_test.dart index 871157d0d..b8185f8b5 100644 --- a/test/widget_tests/after_auth_screens/feed/organization_feed_test.dart +++ b/test/widget_tests/after_auth_screens/feed/organization_feed_test.dart @@ -315,15 +315,18 @@ void main() { await tester.pumpWidget(createOrganizationFeedScreen(homeModel: model)); await tester.pumpAndSettle(); - // Simulate Drag + // Simulate Scroll within content (not at edge) await tester.drag( find.byKey(const Key('listView')), const Offset(0, -200), ); await tester.pumpAndSettle(); - // Verify that counters are reset + // Verify that counters are reset and loading state expect(find.byType(CircularProgressIndicator), findsNothing); + + verifyNever(mockViewModel.nextPage()); + verifyNever(mockViewModel.previousPage()); }, ); });