From f73244e0adff50078f48ca7cc6493cf8ae35bd8a Mon Sep 17 00:00:00 2001 From: Anastasia Katsman Date: Fri, 28 Jun 2024 21:14:22 +0200 Subject: [PATCH] [driver-tests]: add text PopupItemRef.toString GitOrigin-RevId: 0fd0cc029a6c8179efa6b63a43158a96227e8419 --- .../src/com/intellij/driver/sdk/ui/components/PopupUI.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/PopupUI.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/PopupUI.kt index 3542d816a7d5..0d315e1d9ff7 100644 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/PopupUI.kt +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/PopupUI.kt @@ -72,4 +72,6 @@ class PopupItemUiComponent(data: ComponentData) : UiComponent(data) { fun getIconPath() = "path=(.*),".toRegex().find(popupComponent.getIcon().toString())?.let { it.groups.last()?.value ?: "empty" } ?: "empty" + + override fun toString(): String = super.toString() + " '" + getText() + "'" } \ No newline at end of file