[ui-tests] Don't log error in case method isShowing was invoked on the invalid reference

We call isShowing on cache check and it's enough to just throw exception

GitOrigin-RevId: f1d5b41f05cecd8fa51c6e5bb9ff62bc539c7f1d
This commit is contained in:
Maxim.Kolmakov
2024-05-16 18:18:20 +02:00
committed by intellij-monorepo-bot
parent 997b316c63
commit 4ce7e56802

View File

@@ -125,7 +125,10 @@ public class Invoker implements InvokerMBean {
instance = findInstance(call, callTarget.clazz());
}
catch (Exception e) {
LOG.error("Unable to get instance for " + call);
//we need to ignore caching check and not throw error
if (!call.getMethodName().equals("isShowing")) {
LOG.error("Unable to get instance for " + call);
}
throw new DriverIlligalStateException("Unable to get instance for " + call, e);
}
@@ -616,7 +619,6 @@ public class Invoker implements InvokerMBean {
return RefProducer.makeRef(id, rdTarget, value);
}
}
}
record CallTarget(@NotNull Class<?> clazz, @NotNull Method targetMethod) {