diff --git a/feature/sessions/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/sessions/TimetableScreenTest.kt b/feature/sessions/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/sessions/TimetableScreenTest.kt index f813ac717..8dbe39273 100644 --- a/feature/sessions/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/sessions/TimetableScreenTest.kt +++ b/feature/sessions/src/androidUnitTest/kotlin/io/github/droidkaigi/confsched/sessions/TimetableScreenTest.kt @@ -185,9 +185,9 @@ class TimetableScreenTest(private val testCase: DescribedBehavior - val formattedDateTime = - case.dateTime.format(LocalDateTime.Format { byUnicodePattern("yyyy-MM-dd HH-mm") }) - describe("when the current datetime is $formattedDateTime") { - doIt { - setupTimetableServer(ServerStatus.Operational) - setupTimetableScreenContent(case.dateTime) - } - - val formattedTime = - case.dateTime.time.format(LocalTime.Format { byUnicodePattern("HH-mm") }) - val description = "show an timetable item of the current time at $formattedTime" - itShould(description) { - captureScreenWithChecks { - checkTimetableListDisplayed() - } - } - } - } - listOf( TimeLineTestSpec( dateTime = LocalDateTime( year = 2024, monthNumber = 9, - dayOfMonth = 11, - hour = 10, + dayOfMonth = 12, + hour = 23, minute = 0, ), shouldShowTimeLine = false, ), - TimeLineTestSpec( - dateTime = LocalDateTime( - year = 2024, - monthNumber = 9, - dayOfMonth = 12, - hour = 10, - minute = 30, - ), - shouldShowTimeLine = true, - ), TimeLineTestSpec( dateTime = LocalDateTime( year = 2024, @@ -258,19 +228,28 @@ class TimetableScreenTest(private val testCase: DescribedBehavior