feat(recommend): 轮播只保留标题简介并重做顶部导航

This commit is contained in:
Vicky authored and trae-solo-agent committed 2026-10-30 17:14:34 +08:00
1 parent 53e8c924a6
commit 9ef8eb15b0
6 files changed
+180 -205

No files matched your search

@@ -60,7 +60,7 @@ void main() {
expect(fixture.controller.refreshCalls, 2);
});
testWidgets('should_auto_retry_three_times_then_show_network_error', (
testWidgets('should_allow_manual_retry_after_auto_retries_are_exhausted', (
tester,
) async {
final fixture = await _pumpFailingRecommend(tester);
@@ -89,7 +89,14 @@ void main() {
expect(find.byKey(const Key('recommend-feed-skeleton')), findsNothing);
expect(find.byKey(const Key('recommend-feed-empty')), findsOneWidget);
expect(find.text(l10n.networkError), findsOneWidget);
expect(find.text(l10n.retry), findsNothing);
expect(find.text(l10n.retry), findsOneWidget);
await tester.tap(find.byKey(const Key('recommend-feed-retry')));
await tester.pump();
await tester.pump(const Duration(milliseconds: 1));
expect(fixture.controller.refreshCalls, 5);
expect(find.byKey(const Key('recommend-feed-skeleton')), findsOneWidget);
});
testWidgets('should_cancel_pending_auto_retry_when_disposed', (tester) async {