fix(content): 추천 섹션 순서를 조정한다
This commit is contained in:
@@ -283,6 +283,32 @@ class ContentMainFragmentSourceTest {
|
||||
assertTrue(audioCardLayout.contains("android:visibility=\"gone\""))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `content 추천 layout은 요청된 섹션 순서로 배치한다`() {
|
||||
val fragmentLayout = projectFile("app/src/main/res/layout/fragment_v2_main_content.xml").readText()
|
||||
val originalSeriesIndex = fragmentLayout.indexOf("@+id/ll_content_original_series_section")
|
||||
val newAndHotIndex = fragmentLayout.indexOf("@+id/ll_content_new_and_hot_section")
|
||||
val latestAudioIndex = fragmentLayout.indexOf("@+id/ll_content_latest_audio_section")
|
||||
val freeAudioIndex = fragmentLayout.indexOf("@+id/ll_content_free_audio_section")
|
||||
val pointAudioIndex = fragmentLayout.indexOf("@+id/ll_content_point_audio_section")
|
||||
val commentedAudioIndex = fragmentLayout.indexOf("@+id/ll_content_most_commented_audio_section")
|
||||
val recommendedAudioIndex = fragmentLayout.indexOf("@+id/ll_content_recommended_audio_section")
|
||||
|
||||
assertTrue(originalSeriesIndex >= 0)
|
||||
assertTrue(newAndHotIndex >= 0)
|
||||
assertTrue(latestAudioIndex >= 0)
|
||||
assertTrue(freeAudioIndex >= 0)
|
||||
assertTrue(pointAudioIndex >= 0)
|
||||
assertTrue(commentedAudioIndex >= 0)
|
||||
assertTrue(recommendedAudioIndex >= 0)
|
||||
assertTrue(originalSeriesIndex < newAndHotIndex)
|
||||
assertTrue(newAndHotIndex < latestAudioIndex)
|
||||
assertTrue(latestAudioIndex < freeAudioIndex)
|
||||
assertTrue(freeAudioIndex < pointAudioIndex)
|
||||
assertTrue(pointAudioIndex < commentedAudioIndex)
|
||||
assertTrue(commentedAudioIndex < recommendedAudioIndex)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `콘텐츠 추천 섹션 타이틀은 Phase 2 대상에만 chevron을 표시한다`() {
|
||||
val source = projectFile(
|
||||
|
||||
Reference in New Issue
Block a user