Skip to content

Commit

Permalink
Code Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
xkaper001 committed Nov 21, 2024
1 parent cbbf6d8 commit 431bd58
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
},
);
});
Expand Down

0 comments on commit 431bd58

Please sign in to comment.