From 72e2a2b77b24eacd0194d25c64311f4eeb47a71c Mon Sep 17 00:00:00 2001 From: Anastasia Katsman Date: Thu, 25 Sep 2025 18:37:16 +0200 Subject: [PATCH] [driver] improve not clear error message in `waitNotFound` GitOrigin-RevId: 3fbd54cc694496dc7d59e3adedf9fc4ec9596a34 --- .../src/com/intellij/driver/sdk/ui/components/UiComponent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/UiComponent.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/UiComponent.kt index ae319ef0eb3e..f0dd155a1dc4 100644 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/UiComponent.kt +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/UiComponent.kt @@ -81,7 +81,7 @@ open class UiComponent(private val data: ComponentData) : Finder, WithKeyboard { * @param timeout The maximum time to wait for the element to not be found. If not specified, the default timeout is used. */ fun waitNotFound(timeout: Duration? = DEFAULT_FIND_TIMEOUT) { - waitFor(message = "No ${this::class.simpleName}[xpath=${data.xpath}] in ${data.parentSearchContext.contextAsString}", + waitFor(message = "There should be no ${this::class.simpleName}[xpath=${data.xpath}] in ${data.parentSearchContext.contextAsString}", timeout = timeout ?: DEFAULT_FIND_TIMEOUT, interval = 1.seconds) { !present()