AT-3334 Gateway tests failing after adding Compose UI support to Remote Driver framework

cleanup dependencies

fix tests #2

fix tests

Move ComposeXpathDataModelExtension to new package

AT-3334 Gateway tests failing after adding Compose UI support to Remote Driver framework

- Add `remote-driver.compose` module


Merge-request: IJ-MR-178847
Merged-by: Dmitrii Denisov <dmitrii.denisov@jetbrains.com>

(cherry picked from commit 90ea2158f9e3928ed16c072c765f4c7b0803e2e7)

IJ-CR-178721

GitOrigin-RevId: f538bfa6782ab8c3f78ea2077a8d1c984b0da963
This commit is contained in:
Dmitrii Denisov
2025-10-20 18:58:02 +00:00
committed by intellij-monorepo-bot
parent 49cd270940
commit 67564255d6
12 changed files with 62 additions and 8 deletions
@@ -21,6 +21,7 @@
- name: intellij.performanceTesting
contentModules:
- name: intellij.performanceTesting.remoteDriver
- name: intellij.performanceTesting.remoteDriver.compose
- name: intellij.performanceTesting.vcs
- name: intellij.tools.ide.starter.bus
- name: intellij.driver.model
@@ -15,6 +15,7 @@
<content namespace="jetbrains">
<module name="intellij.performanceTesting.remoteDriver"/>
<module name="intellij.performanceTesting.remoteDriver.compose"/>
<module name="intellij.performanceTesting.vcs"/>
<module name="intellij.performanceTesting.frontend"/>
<module name="intellij.tools.ide.starter.bus" loading="embedded"/>
@@ -0,0 +1,26 @@
### auto-generated section `build intellij.performanceTesting.remoteDriver.compose` start
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
resourcegroup(
name = "remote-driver.compose_resources",
srcs = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_library(
name = "remote-driver.compose",
module_name = "intellij.performanceTesting.remoteDriver.compose",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form"], allow_empty = True),
resources = [":remote-driver.compose_resources"],
deps = [
"@lib//:kotlin-stdlib",
"//plugins/performanceTesting/core:performanceTesting",
"//platform/remote-driver/model",
"//platform/platform-api:ide",
"//platform/compose",
"//platform/core-ui",
"//plugins/performanceTesting/remote-driver",
]
)
### auto-generated section `build intellij.performanceTesting.remoteDriver.compose` end
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="kotlin-stdlib" level="project" />
<orderEntry type="module" module-name="intellij.performanceTesting" />
<orderEntry type="module" module-name="intellij.driver.model" />
<orderEntry type="module" module-name="intellij.platform.ide" />
<orderEntry type="module" module-name="intellij.platform.compose" />
<orderEntry type="module" module-name="intellij.platform.core.ui" />
<orderEntry type="module" module-name="intellij.performanceTesting.remoteDriver" />
</component>
</module>
@@ -0,0 +1,11 @@
<idea-plugin visibility="internal" package="com.intellij.performanceTesting.remoteDriver.compose">
<dependencies>
<module name="intellij.platform.compose"/>
<module name="intellij.performanceTesting.remoteDriver"/>
</dependencies>
<extensions defaultExtensionNs="com.jetbrains.performancePlugin">
<remotedriver.xpathDataModelExtension
implementation="com.intellij.performanceTesting.remoteDriver.compose.ComposeXpathDataModelExtension"/>
</extensions>
</idea-plugin>
@@ -1,5 +1,5 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.performancePlugin.remotedriver.xpath
package com.intellij.performanceTesting.remoteDriver.compose
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.awt.ComposePanel
@@ -8,6 +8,7 @@ import androidx.compose.ui.semantics.SemanticsProperties
import androidx.compose.ui.semantics.getOrNull
import com.intellij.ui.scale.JBUIScale
import com.jetbrains.performancePlugin.jmxDriver.InvokerService
import com.jetbrains.performancePlugin.remotedriver.xpath.XpathDataModelExtension
import org.jetbrains.jewel.bridge.JewelComposePanelWrapper
import org.w3c.dom.Document
import org.w3c.dom.Element
@@ -33,7 +33,6 @@ jvm_library(
"//libraries/jcef",
"//platform/platform-impl:ide-impl",
"//platform/ui.jcef",
"//platform/compose",
"//platform/core-ui",
],
exports = [
@@ -27,7 +27,6 @@
<orderEntry type="module" module-name="intellij.libraries.jcef" />
<orderEntry type="module" module-name="intellij.platform.ide.impl" />
<orderEntry type="module" module-name="intellij.platform.ui.jcef" />
<orderEntry type="module" module-name="intellij.platform.compose" />
<orderEntry type="module" module-name="intellij.platform.core.ui" />
</component>
</module>
@@ -1,8 +1,4 @@
<idea-plugin visibility="internal" package="com.jetbrains.performancePlugin.remotedriver">
<dependencies>
<module name="intellij.platform.compose"/>
</dependencies>
<extensionPoints>
<extensionPoint interface="com.jetbrains.performancePlugin.remotedriver.xpath.XpathDataModelExtension"
qualifiedName="com.jetbrains.performancePlugin.remotedriver.xpathDataModelExtension" dynamic="true"/>
@@ -22,6 +18,5 @@
<extensions defaultExtensionNs="com.jetbrains.performancePlugin">
<remotedriver.xpathDataModelExtension implementation="com.jetbrains.performancePlugin.remotedriver.RemoteDriverDataModelExtension"/>
<remotedriver.xpathDataModelExtension implementation="com.jetbrains.performancePlugin.remotedriver.xpath.ComposeXpathDataModelExtension"/>
</extensions>
</idea-plugin>