fix(recommend): 修正热播信息行与操作栏位置

This commit is contained in:
Zhou Weidong committed 2026-10-22 19:46:44 +08:00
1 parent 8737937875
commit 0c06a6dccd
11 files changed
+78 -5

No files matched your search

+15 -1
View File
@@ -371,9 +371,16 @@ void main() {
.data,
'Episode 2 / 8 total',
);
expect(find.textContaining('41.9万'), findsOneWidget);
expect(find.textContaining('41.9w'), findsOneWidget);
expect(find.byKey(const Key('home-feed-ranking-pill')), findsOneWidget);
expect(find.byKey(const Key('home-feed-view-pill')), findsOneWidget);
expect(find.text('Trending'), findsOneWidget);
expect(find.text('Romance Urban'), findsOneWidget);
final episodeProgress = tester.widget<Text>(
find.byKey(const Key('home-feed-episode-progress')),
);
expect(episodeProgress.maxLines, 1);
expect(episodeProgress.softWrap, isFalse);
expect(
tester.widget<Text>(find.byKey(const Key('rail-like-count'))).data,
'1006',
@@ -407,6 +414,13 @@ void main() {
expect(find.byKey(const Key('rail-comments')), findsNothing);
expect(find.byKey(const Key('rail-share')), findsNothing);
expect(find.text('Comments'), findsNothing);
expect(
tester.getRect(find.byKey(const Key('home-feed-action-rail'))).right,
closeTo(
tester.getRect(find.byKey(const Key('home-feed-gesture'))).right - 8,
0.1,
),
);
expect(find.byKey(const Key('progress-loading')), findsNothing);
expect(
find.byKey(const Key('home-feed-progress-inactive')),