Skip to content

Commit a39df44

Browse files
authored
ci: Update UI tests to use the 243 release (#5388)
* Try 243 * try not running on ci * try * switched to 243 * try 243 * addressed feedback * try getting an instance * fix tests
1 parent b7e9b73 commit a39df44

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toolkitVersion=3.57-SNAPSHOT
88
publishToken=
99
publishChannel=
1010

11-
ideProfileName=2024.2
11+
ideProfileName=2024.3
1212

1313
remoteRobotPort=8080
1414

ui-tests-starter/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ tasks.test {
5858
useJUnitPlatform()
5959

6060
systemProperty("ui.test.plugins", testPlugins.get().asPath)
61+
systemProperty("org.gradle.project.ideProfileName", ideProfile.name)
6162
}
6263

6364
// hack to disable ui tests in ./gradlew check

ui-tests-starter/tst/software/aws/toolkits/jetbrains/uitests/OfflineAmazonQInlineCompletionTest.kt renamed to ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/OfflineAmazonQInlineCompletionTest.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33
package software.aws.toolkits.jetbrains.uitests
44

55
import com.intellij.driver.sdk.openFile
66
import com.intellij.driver.sdk.ui.ui
77
import com.intellij.driver.sdk.waitForProjectOpen
88
import com.intellij.ide.starter.ci.CIServer
9+
import com.intellij.ide.starter.config.ConfigurationStorage
910
import com.intellij.ide.starter.di.di
1011
import com.intellij.ide.starter.driver.engine.runIdeWithDriver
1112
import com.intellij.ide.starter.ide.IdeProductProvider
@@ -28,6 +29,13 @@ class OfflineAmazonQInlineCompletionTest {
2829
di = DI {
2930
extend(di)
3031
bindSingleton<CIServer>(overrides = true) { TestCIServer }
32+
val defaults = ConfigurationStorage.instance().defaults.toMutableMap().apply {
33+
put("LOG_ENVIRONMENT_VARIABLES", (!System.getenv("CI").toBoolean()).toString())
34+
}
35+
36+
bindSingleton<ConfigurationStorage>(overrides = true) {
37+
ConfigurationStorage(this, defaults)
38+
}
3139
}
3240
}
3341

@@ -38,7 +46,7 @@ class OfflineAmazonQInlineCompletionTest {
3846
LocalProjectInfo(
3947
Paths.get("tstData", "Hello")
4048
)
41-
).useRelease("2024.2")
49+
).useRelease(System.getProperty("org.gradle.project.ideProfileName"))
4250
Paths.get(System.getProperty("user.home"), ".aws", "sso", "cache", "ee1d2538cb8d358377d7661466c866af747a8a3f.json")
4351
.createParentDirectories()
4452
.writeText(

0 commit comments

Comments
 (0)