From 823af72239cb8e04d1f63d24dc0ef42641992034 Mon Sep 17 00:00:00 2001 From: Aydar Mukhametzyanov Date: Fri, 9 Jan 2026 12:02:44 +0100 Subject: [PATCH] [platform UI][se] IJPL-225186 Run some tests from FunctionalIntelliJTest with old and split SE Space-RevId: e6a273b2da7cda6743040a6076fa9bf38da3a7a7 GitOrigin-RevId: 3c48500af26124d91be7d32c2b0598a5a3cc4229 --- .../ide/performanceTesting/commands/generalCommandChain.kt | 4 ++++ .../src/com/intellij/ide/starter/ide/IDETestContext.kt | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/performanceTesting/commands-model/src/com/intellij/tools/ide/performanceTesting/commands/generalCommandChain.kt b/plugins/performanceTesting/commands-model/src/com/intellij/tools/ide/performanceTesting/commands/generalCommandChain.kt index 690f8549ea09..690053b824cb 100644 --- a/plugins/performanceTesting/commands-model/src/com/intellij/tools/ide/performanceTesting/commands/generalCommandChain.kt +++ b/plugins/performanceTesting/commands-model/src/com/intellij/tools/ide/performanceTesting/commands/generalCommandChain.kt @@ -810,6 +810,10 @@ fun T.setRegistrySelectedOption(registry: String, optionValue addCommand("${CMD_PREFIX}set $registry=[option]$optionValue") } +fun T.setRegistries(registries: List, value: Boolean): T = apply { + registries.forEach { setRegistry(it, value) } +} + fun T.validateGradleMatrixCompatibility(): T = apply { addCommand("${CMD_PREFIX}validateGradleMatrixCompatibility") } diff --git a/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/ide/IDETestContext.kt b/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/ide/IDETestContext.kt index dd6e64db2781..25eba635541f 100644 --- a/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/ide/IDETestContext.kt +++ b/tools/intellij.tools.ide.starter/src/com/intellij/ide/starter/ide/IDETestContext.kt @@ -81,7 +81,7 @@ open class IDETestContext( companion object { const val OPENTELEMETRY_FILE: String = "opentelemetry.json" - private val SEARCH_EVERYWHERE_REGISTRY_KEYS: List get() = listOf( + val SEARCH_EVERYWHERE_REGISTRY_KEYS: List get() = listOf( "search.everywhere.new.enabled", "search.everywhere.new.rider.enabled", "search.everywhere.new.idea.enabled", @@ -344,12 +344,10 @@ open class IDETestContext( addSystemProperty("llm.show.ai.promotion.window.on.start", false) } - @Suppress("TestOnlyProblems") fun disableSplitSearchEverywhere(): IDETestContext = applyVMOptionsPatch { SEARCH_EVERYWHERE_REGISTRY_KEYS.forEach { addSystemProperty(it, false) } } - @Suppress("TestOnlyProblems") fun enableSplitSearchEverywhere(): IDETestContext = applyVMOptionsPatch { SEARCH_EVERYWHERE_REGISTRY_KEYS.forEach { addSystemProperty(it, true) } }