From 0a9b00ac2f285337f8b6bc66d6c8c72637c9c98d Mon Sep 17 00:00:00 2001 From: Anastasia Katsman Date: Tue, 9 Apr 2024 19:06:22 +0200 Subject: [PATCH] ui-tests: add clickItem to the test output GitOrigin-RevId: 27720f55a07388629e4b62c7a0f835e3d15a2ef1 --- .../src/com/intellij/driver/sdk/ui/components/JListUI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/JListUI.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/JListUI.kt index 5d5535c32eeb..ad6d7b79c310 100644 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/JListUI.kt +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/JListUI.kt @@ -20,7 +20,7 @@ class JListUiComponent(data: ComponentData) : UiComponent(data) { fun clickItem(itemText: String, fullMatch: Boolean = true) { findItemIndex(itemText, fullMatch)?.let { fixture.clickItemAtIndex(it) - } ?: throw IllegalArgumentException("item with text $itemText not found") + } ?: throw IllegalArgumentException("item with text $itemText not found, all items: ${items.joinToString(", ")}") } private fun findItemIndex(itemText: String, fullMatch: Boolean): Int? =