feat(home): 首页按内容类型分频道 Feed 并支持分页

This commit is contained in:
Zhou Weidong committed 2026-10-21 17:33:52 +08:00
1 parent 4d0be47ee3
commit ae61d9ec4c
22 files changed
+1001 -71

No files matched your search

+9 -3
View File
@@ -116,12 +116,18 @@ void main() {
expect(player.homeMode, isFalse);
});
testWidgets('should_show_coming_soon_for_anime_tab', (tester) async {
testWidgets('should_switch_to_anime_channel', (tester) async {
await _pumpApp(tester);
await tester.tap(find.byKey(const Key('home-feed-tab-anime')));
await tester.pump();
expect(find.text('Coming soon'), findsOneWidget);
await tester.pumpAndSettle();
expect(find.text('Coming soon'), findsNothing);
expect(
tester.widget<Text>(find.text('Anime')).style?.fontWeight,
FontWeight.w800,
);
expect(find.byKey(const Key('home-feed-title')), findsOneWidget);
});
testWidgets('should_refresh_feed_without_blank_loading', (tester) async {