feat(creator-channel): 홈 커뮤니티 응답 상태를 추가한다
This commit is contained in:
+4
@@ -66,12 +66,16 @@ class CreatorChannelHomeEndToEndTest @Autowired constructor(
|
||||
.andExpect(jsonPath("$.data.latestAudioContent.audioContentId").value(fixture.latestAudioId))
|
||||
.andExpect(jsonPath("$.data.channelDonations[0].can").value(500))
|
||||
.andExpect(jsonPath("$.data.notices[0].postId").value(fixture.noticeId))
|
||||
.andExpect(jsonPath("$.data.notices[0].isPinned").value(true))
|
||||
.andExpect(jsonPath("$.data.notices[0].isCommentAvailable").value(true))
|
||||
.andExpect(jsonPath("$.data.schedules[0].targetId").value(fixture.liveScheduleId))
|
||||
.andExpect(jsonPath("$.data.schedules[1].targetId").value(fixture.audioScheduleId))
|
||||
.andExpect(jsonPath("$.data.audioContents[0].audioContentId").value(fixture.listAudioId))
|
||||
.andExpect(jsonPath("$.data.audioContents[1].audioContentId").value(fixture.firstAudioId))
|
||||
.andExpect(jsonPath("$.data.series[0].seriesId").value(fixture.seriesId))
|
||||
.andExpect(jsonPath("$.data.communities[0].postId").value(fixture.communityId))
|
||||
.andExpect(jsonPath("$.data.communities[0].isPinned").value(false))
|
||||
.andExpect(jsonPath("$.data.communities[0].isCommentAvailable").value(true))
|
||||
.andExpect(jsonPath("$.data.fanTalk.latestFanTalk.fanTalkId").value(fixture.fanTalkId))
|
||||
.andExpect(jsonPath("$.data.introduce").value("e2e introduce"))
|
||||
.andExpect(jsonPath("$.data.activity.audioContentCount").value(3))
|
||||
|
||||
+12
-1
@@ -135,7 +135,11 @@ class CreatorChannelHomeControllerTest @Autowired constructor(
|
||||
.andExpect(jsonPath("$.data.notices[0].dateUtc").value("2026-06-12T04:00:00Z"))
|
||||
.andExpect(jsonPath("$.data.notices[0].imageUrl").doesNotExist())
|
||||
.andExpect(jsonPath("$.data.notices[0].audioUrl").doesNotExist())
|
||||
.andExpect(jsonPath("$.data.notices[0].isPinned").value(true))
|
||||
.andExpect(jsonPath("$.data.notices[0].isCommentAvailable").value(true))
|
||||
.andExpect(jsonPath("$.data.notices[0].isLiked").value(true))
|
||||
.andExpect(jsonPath("$.data.communities[0].isPinned").value(false))
|
||||
.andExpect(jsonPath("$.data.communities[0].isCommentAvailable").value(false))
|
||||
.andExpect(jsonPath("$.data.communities[0].isLiked").value(true))
|
||||
.andExpect(jsonPath("$.data.series[0].isNew").value(true))
|
||||
.andExpect(jsonPath("$.data.series[0].isOriginal").value(true))
|
||||
@@ -283,7 +287,14 @@ class CreatorChannelHomeControllerTest @Autowired constructor(
|
||||
isOriginal = true
|
||||
)
|
||||
),
|
||||
communities = listOf(post.copy(postId = 302L, content = "community")),
|
||||
communities = listOf(
|
||||
post.copy(
|
||||
postId = 302L,
|
||||
content = "community",
|
||||
isCommentAvailable = false,
|
||||
isPinned = false
|
||||
)
|
||||
),
|
||||
fanTalk = CreatorChannelFanTalkSummary(
|
||||
totalCount = 1,
|
||||
latestFanTalk = CreatorChannelFanTalk(
|
||||
|
||||
Reference in New Issue
Block a user