Skip to content

Commit 08ab782

Browse files
committed
assertions
1 parent dc7f4e0 commit 08ab782

File tree

1 file changed

+9
-3
lines changed
  • ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/chatTests

1 file changed

+9
-3
lines changed

ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/chatTests/AmazonQChatTest.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package software.aws.toolkits.jetbrains.uitests.chatTests
55

6+
import com.intellij.driver.sdk.waitForIndicators
67
import com.intellij.driver.sdk.waitForProjectOpen
78
import com.intellij.ide.starter.ci.CIServer
89
import com.intellij.ide.starter.config.ConfigurationStorage
@@ -28,6 +29,10 @@ import software.aws.toolkits.jetbrains.uitests.useExistingConnectionForTest
2829
import java.io.File
2930
import java.nio.file.Path
3031
import 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

3237
class 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

0 commit comments

Comments
 (0)