+ @Test
+ fun `html output contains the correct release type for movies`() {
+ val movieState = MovieState(
+ setOf(
+ movie("Movie 1", "https://cdn.premiumkino.de/movie/3047/81c49774d7828a898ae1d525ffd135af_w300.jpg", "20240212-1845" to "2D OV", "20240213-1330" to "2D", "20240214-1815" to "2D OmeU"),
+ ), setOf()
+ )
+ val output = movieState.output(Reaction("", null, null, null))
+ val html = output.text("text/html")
+ val document = Jsoup.parse(html)
+ assertThat(
+ document.select("section.daily-programmes li.performance")
+ .map { performance -> listOf(".name", ".time", ".type").map { performance.select(it).text() }.joinToString(" - ")}, contains(
+ "Movie 1 - 18:45 - 2D OV", "Movie 1 - 13:30 - 2D", "Movie 1 - 18:15 - 2D OmeU"
+ )
+ )
+ }
+