Skip to content

Commit b8e782c

Browse files
committed
test
1 parent 347e1e7 commit b8e782c

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

ui-tests-starter/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ tasks.register<Test>("uiTest") {
9595

9696
systemProperty("ui.test.plugins", testPlugins.get().asPath)
9797
systemProperty("org.gradle.project.ideProfileName", ideProfile.name)
98+
val testSuite = System.getenv("TEST_DIR") ?: ""
99+
filter {
100+
"includeTestsMatching(software.aws.toolkits.jetbrains.uitests.testTests.*)"
101+
}
98102
}
99103

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

ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/testTests/QTestGenerationChatTestScripts.kt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ val testHappyPathScript = """
6666
const inputElement = document.querySelector('.mynah-chat-prompt-input');
6767
return inputElement && !inputElement.disabled;
6868
},
69-
{ timeout: 10000 }
69+
{ timeout: 30000 }
7070
);
7171
7272
console.log("Input field re-enabled after acceptance")
@@ -78,7 +78,7 @@ val testHappyPathScript = """
7878
button.textContent.includes(expectedText)
7979
);
8080
},
81-
{timeout:10000},
81+
{timeout: 30000},
8282
"How can we make /test better"
8383
);
8484
@@ -330,7 +330,7 @@ val testRejectPathScript = """
330330
const inputElement = document.querySelector('.mynah-chat-prompt-input');
331331
return inputElement && !inputElement.disabled;
332332
},
333-
{ timeout: 10000 }
333+
{ timeout: 30000 }
334334
);
335335
336336
console.log("Input field re-enabled after rejection")
@@ -341,7 +341,7 @@ val testRejectPathScript = """
341341
button.textContent.includes(expectedText)
342342
);
343343
},
344-
{timeout:10000},
344+
{timeout:30000},
345345
"How can we make /test better"
346346
);
347347
@@ -571,7 +571,7 @@ val testCancelButtonScript = """
571571
const inputElement = document.querySelector('.mynah-chat-prompt-input');
572572
return inputElement && !inputElement.disabled;
573573
},
574-
{ timeout: 10000 }
574+
{ timeout: 30000 }
575575
);
576576
577577
console.log("Input field re-enabled after cancellation")
@@ -583,7 +583,7 @@ val testCancelButtonScript = """
583583
button.textContent.includes(expectedText)
584584
);
585585
},
586-
{timeout:10000},
586+
{timeout:30000},
587587
"How can we make /test better"
588588
);
589589
@@ -645,7 +645,7 @@ val testDocumentationErrorScript = """
645645
return pageContent.includes(expectedText);
646646
},
647647
{
648-
timeout: 10000
648+
timeout: 30000
649649
},
650650
"I apologize, but I couldn't process your /test instruction"
651651
);
@@ -657,7 +657,7 @@ val testDocumentationErrorScript = """
657657
const inputElement = document.querySelector('.mynah-chat-prompt-input');
658658
return inputElement && !inputElement.disabled;
659659
},
660-
{ timeout: 10000 }
660+
{ timeout: 30000 }
661661
);
662662
663663
console.log("Input field re-enabled after error")
@@ -669,7 +669,7 @@ val testDocumentationErrorScript = """
669669
button.textContent.includes(expectedText)
670670
);
671671
},
672-
{ timeout: 10000 },
672+
{ timeout: 30000 },
673673
"How can we make /test better"
674674
);
675675
@@ -730,9 +730,9 @@ val testRemoveFunctionErrorScript = """
730730
return pageContent.includes(expectedText);
731731
},
732732
{
733-
timeout: 10000
733+
timeout: 30000
734734
},
735-
"I apologize, but I couldn't process your /test instruction"
735+
"I apologize, but I couldn't process your /test instruction."
736736
);
737737
738738
console.log("Error message displayed correctly")
@@ -741,7 +741,7 @@ val testRemoveFunctionErrorScript = """
741741
const inputElement = document.querySelector('.mynah-chat-prompt-input');
742742
return inputElement && !inputElement.disabled;
743743
},
744-
{ timeout: 10000 }
744+
{ timeout: 30000 }
745745
);
746746
747747
console.log("Input field re-enabled after error")
@@ -753,7 +753,7 @@ val testRemoveFunctionErrorScript = """
753753
button.textContent.includes(expectedText)
754754
);
755755
},
756-
{timeout:10000},
756+
{timeout:30000},
757757
"How can we make /test better"
758758
);
759759
@@ -825,7 +825,7 @@ val testMethodNotFoundErrorScript = """
825825
const inputElement = document.querySelector('.mynah-chat-prompt-input');
826826
return inputElement && !inputElement.disabled;
827827
},
828-
{ timeout: 10000 }
828+
{ timeout: 30000 }
829829
);
830830
831831
console.log("Input field re-enabled after error")
@@ -837,7 +837,7 @@ val testMethodNotFoundErrorScript = """
837837
button.textContent.includes(expectedText)
838838
);
839839
},
840-
{timeout:10000},
840+
{timeout:30000},
841841
"How can we make /test better"
842842
);
843843

0 commit comments

Comments
 (0)