feat(interaction): 支持游客点赞收藏评论

This commit is contained in:
Zhou Weidong committed 2026-10-26 22:33:14 +08:00
1 parent 188811fde6
commit a3d50eb935
18 files changed
+364 -121

No files matched your search

+3 -3
View File
@@ -266,7 +266,7 @@ void main() {
expect(tester.takeException(), isNull);
});
testWidgets('should_open_auth_gate_without_liking_when_signed_out', (
testWidgets('should_like_without_login_when_signed_out', (
tester,
) async {
SharedPreferencesAsyncPlatform.instance =
@@ -279,8 +279,8 @@ void main() {
await tester.tap(find.byKey(const Key('player-rail-like')));
await tester.pumpAndSettle();
expect(find.text('Sign in to continue'), findsOneWidget);
expect(interactions.likeTargets, isEmpty);
expect(find.text('Sign in to continue'), findsNothing);
expect(interactions.likeTargets, ['EPISODE:city-lights-demo-1']);
});
testWidgets('should_show_saved_player_drama_in_favorites', (tester) async {