feat(recommend): 新增分区流全部短剧与剧单

This commit is contained in:
Zhou Weidong committed 2026-10-22 17:23:22 +08:00
1 parent 0ef2438100
commit f1b5418954
22 files changed
+1426 -722

No files matched your search

+15 -4
View File
@@ -96,7 +96,9 @@ void main() {
expect(tester.takeException(), isNull);
});
testWidgets('should_keep_immersive_player_on_recommend_tab', (tester) async {
testWidgets('should_show_section_feed_and_open_player_from_recommend', (
tester,
) async {
SharedPreferencesAsyncPlatform.instance =
InMemorySharedPreferencesAsync.empty();
tester.view.physicalSize = const Size(390, 844);
@@ -123,9 +125,18 @@ void main() {
await tester.pumpAndSettle();
expect(find.byKey(const Key('home-grid')), findsNothing);
expect(find.byType(PageView), findsOneWidget);
expect(tester.widget<PlayerPage>(find.byType(PlayerPage)).homeMode, isTrue);
expect(find.byKey(const Key('home-feed-title')), findsOneWidget);
expect(find.byKey(const Key('recommend-page')), findsOneWidget);
expect(find.byKey(const Key('recommend-section-hits')), findsOneWidget);
expect(find.byType(PlayerPage), findsNothing);
await tester.tap(
find.byKey(const Key('recommend-card-hits-the-signal-demo')),
);
await tester.pumpAndSettle();
expect(
tester.widget<PlayerPage>(find.byType(PlayerPage).last).homeMode,
isTrue,
);
});
testWidgets('should_render_new_feed_structure_with_formatted_counts', (