mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test framework [starter]: do not wait for driver if we don't need to log Ui Hierarchy
GitOrigin-RevId: a4c1e28173b3fb880061596e81f2d89fc05434a4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
039a3e41cd
commit
25b7ebb722
+5
-6
@@ -35,16 +35,15 @@ internal class DriverWithDetailedLogging(private val driver: Driver, logUiHierar
|
||||
init {
|
||||
EventsBus.subscribeOnce(this) { event: IdeLaunchEvent ->
|
||||
runContext = event.runContext
|
||||
if (!CIServer.instance.isBuildRunningOnCI && !ConfigurationStorage.useDockerContainer()) {
|
||||
if (!CIServer.instance.isBuildRunningOnCI && !ConfigurationStorage.useDockerContainer() &&
|
||||
logUiHierarchy && !event.runContext.calculateVmOptions().hasHeadlessMode()) {
|
||||
withTimeoutOrNull(1.minutes) {
|
||||
while (!driver.isConnected) {
|
||||
delay(3.seconds)
|
||||
}
|
||||
if (logUiHierarchy) {
|
||||
driver.withContext {
|
||||
val webserverPort = utility(BuiltInServerOptions::class).getInstance().getEffectiveBuiltInServerPort()
|
||||
logOutput("UI Hierarchy: http://localhost:$webserverPort/api/remote-driver/".color(LogColor.PURPLE))
|
||||
}
|
||||
driver.withContext {
|
||||
val webserverPort = utility(BuiltInServerOptions::class).getInstance().getEffectiveBuiltInServerPort()
|
||||
logOutput("UI Hierarchy: http://localhost:$webserverPort/api/remote-driver/".color(LogColor.PURPLE))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user