From 55054365ff2bc41c79bb9a60a990b02d2525d538 Mon Sep 17 00:00:00 2001 From: Oleg Yukhnevich Date: Thu, 2 Nov 2023 10:03:06 +0200 Subject: [PATCH] Check all html files except navigation in integration test --- .../dokka/it/gradle/MultiModule0IntegrationTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/MultiModule0IntegrationTest.kt b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/MultiModule0IntegrationTest.kt index 9745a770a6..f4061345f0 100644 --- a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/MultiModule0IntegrationTest.kt +++ b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/MultiModule0IntegrationTest.kt @@ -73,13 +73,13 @@ class MultiModule0IntegrationTest : AbstractGradleIntegrationTest() { "Expected moduleC being mentioned in -modules.html" ) - val indexHtmls = outputDir.walkTopDown().filter { - it.isFile && it.name == "index.html" + val htmlsWithHomepageLink = outputDir.walkTopDown().filter { + it.isFile && it.extension == "html" && it.name != "navigation.html" }.toList() - assertEquals(10, indexHtmls.size) + assertEquals(16, htmlsWithHomepageLink.size) - indexHtmls.forEach { + htmlsWithHomepageLink.forEach { assertTrue( it.readText().contains( """https://github.com/Kotlin/dokka/tree/master/integration-tests/gradle/projects/it-multimodule-0/"""