fix(player): 评论总数含回复并改用相对时间

This commit is contained in:
Zhou Weidong committed 2026-10-21 12:00:27 +08:00
1 parent 22cb74ded4
commit 2659c29501
14 files changed
+212 -9

No files matched your search

+2 -1
View File
@@ -198,11 +198,12 @@ void main() {
await tester.tap(find.byKey(const Key('player-rail-comments')));
await tester.pumpAndSettle();
expect(find.byKey(const Key('player-comments-sheet')), findsOneWidget);
expect(find.text('97 comments'), findsOneWidget);
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(comments.countCalls, ['city-lights-demo']);
expect(comments.countCalls, ['city-lights-demo', 'city-lights-demo']);
expect(
tester
.widget<Text>(find.byKey(const Key('player-rail-comments-count')))