File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/chatTests Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 33
44package software.aws.toolkits.jetbrains.uitests.chatTests
55
6+ import com.intellij.driver.sdk.waitForIndicators
67import com.intellij.driver.sdk.waitForProjectOpen
78import com.intellij.ide.starter.ci.CIServer
89import com.intellij.ide.starter.config.ConfigurationStorage
@@ -28,6 +29,10 @@ import software.aws.toolkits.jetbrains.uitests.useExistingConnectionForTest
2829import java.io.File
2930import java.nio.file.Path
3031import java.nio.file.Paths
32+ import kotlin.time.Duration
33+ import kotlin.time.Duration.Companion.minutes
34+ import kotlin.time.DurationUnit
35+ import kotlin.time.toDuration
3136
3237class AmazonQChatTest {
3338
@@ -76,7 +81,8 @@ class AmazonQChatTest {
7681 .useDriverAndCloseIde {
7782 waitForProjectOpen()
7883 // required wait time for the system to be fully ready
79- Thread .sleep(30000 )
84+ waitForIndicators(2 .minutes)
85+ // Thread.sleep(30000)
8086
8187 val result = executePuppeteerScript(testFeatureAvailabilityOnSlash)
8288 assertTrue(result.contains(" /doc" ))
@@ -86,8 +92,8 @@ class AmazonQChatTest {
8692 assertTrue(result.contains(" /clear" ))
8793 assertTrue(result.contains(" /review" ))
8894 assertTrue(result.contains(" /test" ))
89-
90- Thread .sleep(20000 )
95+ println ( " Assertion done " )
96+ // Thread.sleep(20000)
9197 }
9298 }
9399
You can’t perform that action at this time.
0 commit comments