Skip to content

Commit

Permalink
ci: Update UI tests to use the 243 release (#5388)
Browse files Browse the repository at this point in the history
* Try 243

* try not running on ci

* try

* switched to 243

* try 243

* addressed feedback

* try getting an instance

* fix tests
  • Loading branch information
manodnyab authored Feb 20, 2025
1 parent b7e9b73 commit a39df44
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ toolkitVersion=3.57-SNAPSHOT
publishToken=
publishChannel=

ideProfileName=2024.2
ideProfileName=2024.3

remoteRobotPort=8080

Expand Down
1 change: 1 addition & 0 deletions ui-tests-starter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ tasks.test {
useJUnitPlatform()

systemProperty("ui.test.plugins", testPlugins.get().asPath)
systemProperty("org.gradle.project.ideProfileName", ideProfile.name)
}

// hack to disable ui tests in ./gradlew check
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.uitests

import com.intellij.driver.sdk.openFile
import com.intellij.driver.sdk.ui.ui
import com.intellij.driver.sdk.waitForProjectOpen
import com.intellij.ide.starter.ci.CIServer
import com.intellij.ide.starter.config.ConfigurationStorage
import com.intellij.ide.starter.di.di
import com.intellij.ide.starter.driver.engine.runIdeWithDriver
import com.intellij.ide.starter.ide.IdeProductProvider
Expand All @@ -28,6 +29,13 @@ class OfflineAmazonQInlineCompletionTest {
di = DI {
extend(di)
bindSingleton<CIServer>(overrides = true) { TestCIServer }
val defaults = ConfigurationStorage.instance().defaults.toMutableMap().apply {
put("LOG_ENVIRONMENT_VARIABLES", (!System.getenv("CI").toBoolean()).toString())
}

bindSingleton<ConfigurationStorage>(overrides = true) {
ConfigurationStorage(this, defaults)
}
}
}

Expand All @@ -38,7 +46,7 @@ class OfflineAmazonQInlineCompletionTest {
LocalProjectInfo(
Paths.get("tstData", "Hello")
)
).useRelease("2024.2")
).useRelease(System.getProperty("org.gradle.project.ideProfileName"))
Paths.get(System.getProperty("user.home"), ".aws", "sso", "cache", "ee1d2538cb8d358377d7661466c866af747a8a3f.json")
.createParentDirectories()
.writeText(
Expand Down

0 comments on commit a39df44

Please sign in to comment.