From c0aece910e9b012a45ef577136a3f986c52df23e Mon Sep 17 00:00:00 2001 From: Andrey Tyrin Date: Mon, 31 Oct 2022 13:42:32 +0100 Subject: Add constructor keyword (#2691) --- plugins/base/base-test-utils/src/main/kotlin/renderers/SignatureUtils.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/base/base-test-utils/src/main/kotlin/renderers') diff --git a/plugins/base/base-test-utils/src/main/kotlin/renderers/SignatureUtils.kt b/plugins/base/base-test-utils/src/main/kotlin/renderers/SignatureUtils.kt index 3397b2b4..f8b2c453 100644 --- a/plugins/base/base-test-utils/src/main/kotlin/renderers/SignatureUtils.kt +++ b/plugins/base/base-test-utils/src/main/kotlin/renderers/SignatureUtils.kt @@ -11,6 +11,7 @@ fun TestOutputWriter.renderedContent(path: String = "root/example.html"): Elemen .single() fun Element.signature(): Elements = select("div.symbol.monospace") +fun Element.tab(tabName: String): Elements = select("div[data-togglable=\"$tabName\"]") fun Element.firstSignature(): Element = signature().first() ?: throw NoSuchElementException("No signature found") fun Element.lastSignature(): Element = signature().last() ?: throw NoSuchElementException("No signature found") -- cgit