From 35a0b8e5facb5bb389467c9a9fbba852ff4f79dc Mon Sep 17 00:00:00 2001 From: Nikita Zaytsev Date: Fri, 6 Feb 2026 15:03:48 +0000 Subject: [PATCH] IJPL-214109 rdct-test: Add tests for file-based settings sync Also, replace PreCleanupType and postCleanupLauncher with PreRunHandler and PostRunHandler to allow executing custom code before the IDE process is started and after it's stopped in DistributedProjectTestBase.withServerAndClients. GitOrigin-RevId: b307fa69006a8926f98927e4be51a837019d5b79 --- build/launch/src/com/intellij/tools/launch/PathsProvider.kt | 3 +++ .../intellij/driver/sdk/ui/components/elements/JCheckBoxUi.kt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/build/launch/src/com/intellij/tools/launch/PathsProvider.kt b/build/launch/src/com/intellij/tools/launch/PathsProvider.kt index e6f5ca3a4bdc..69d20b4dc6a2 100644 --- a/build/launch/src/com/intellij/tools/launch/PathsProvider.kt +++ b/build/launch/src/com/intellij/tools/launch/PathsProvider.kt @@ -24,6 +24,9 @@ interface PathsProvider { val configFolder: File get() = launcherFolder.resolve("config") + val configBackupFolder: File + get() = launcherFolder.resolve("config-backup") + val systemFolder: File get() = launcherFolder.resolve("system") diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/elements/JCheckBoxUi.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/elements/JCheckBoxUi.kt index 835bf4d99b87..8d085c8adf93 100644 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/elements/JCheckBoxUi.kt +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/elements/JCheckBoxUi.kt @@ -18,6 +18,8 @@ fun Finder.checkBox(@Language("xpath") xpath: String? = null) = x(xpath ?: "//di fun Finder.checkBox(locator: QueryBuilder.() -> String) = x(JCheckBoxUi::class.java) {locator()} +fun Finder.checkBoxWithName(name: String) = x(JCheckBoxUi::class.java) { byAccessibleName(name) } + class JCheckBoxUi(data: ComponentData) : UiComponent(data) { private val checkboxComponent by lazy { driver.cast(component, JCheckBox::class) }