Skip to content

Commit 6fc3014

Browse files
committed
remove comment code
1 parent c598212 commit 6fc3014

File tree

2 files changed

+2
-120
lines changed

2 files changed

+2
-120
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class QTestGenerationChatTest {
8282
"new tab opened",
8383
"Error message displayed correctly",
8484
"Input field re-enabled after error",
85-
// "Feedback button found with correct text after error"
8685
)
8786
}
8887
}
@@ -122,7 +121,6 @@ class QTestGenerationChatTest {
122121
"Cancel button clicked",
123122
"Test generation cancelled successfully",
124123
"Input field re-enabled after cancellation",
125-
// "Feedback button found with correct text"
126124
)
127125
}
128126
}
@@ -159,7 +157,6 @@ class QTestGenerationChatTest {
159157
"new tab opened",
160158
"Error message displayed correctly",
161159
"Input field re-enabled after error",
162-
// "Feedback button found with correct text after error"
163160
)
164161
}
165162
}
@@ -196,7 +193,6 @@ class QTestGenerationChatTest {
196193
"new tab opened",
197194
"Error message displayed correctly",
198195
"Input field re-enabled after error",
199-
// "Feedback button found with correct text after error"
200196
)
201197
}
202198
}
@@ -378,7 +374,6 @@ class QTestGenerationChatTest {
378374
"Result Reject",
379375
"Unit test generation completed.",
380376
"Input field re-enabled after rejection",
381-
// "Feedback button found with correct text"
382377
)
383378
}
384379
}

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

Lines changed: 2 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,6 @@ val testHappyPathScript = """
7777
7878
console.log("Input field re-enabled after acceptance")
7979
80-
81-
82-
83-
84-
85-
// const feedbackButton = await page.waitForFunction(
86-
// (expectedText) => {
87-
// const buttons = document.querySelectorAll('button');
88-
// return Array.from(buttons).find(button =>
89-
// button.textContent.includes(expectedText)
90-
// );
91-
// },
92-
// {timeout: 4000000},
93-
// "How can we make /test better"
94-
// );
95-
//
96-
// if (feedbackButton){
97-
// console.log("Feedback button found with correct text")
98-
// }else{
99-
// console.log("Feedback button not found")
100-
// throw new Error('Feedback button not found');
101-
// }
10280
} catch (e) {
10381
console.log("Element with text not found")
10482
console.log(e)
@@ -352,24 +330,6 @@ val testRejectPathScript = """
352330
353331
console.log("Input field re-enabled after rejection")
354332
355-
// const feedbackButton = await page.waitForFunction(
356-
// (expectedText) => {
357-
// const buttons = document.querySelectorAll('button');
358-
// return Array.from(buttons).find(button =>
359-
// button.textContent.includes(expectedText)
360-
// );
361-
// },
362-
// {timeout: 4000000},
363-
// "How can we make /test better"
364-
// );
365-
//
366-
// if (feedbackButton){
367-
// console.log("Feedback button found with correct text")
368-
// }else{
369-
// console.log("Feedback button not found")
370-
// throw new Error('Feedback button not found');
371-
// }
372-
373333
} catch (e) {
374334
console.log("Element with text not found")
375335
console.log(e)
@@ -601,27 +561,7 @@ val testCancelButtonScript = """
601561
);
602562
603563
console.log("Input field re-enabled after cancellation")
604-
605-
// const feedbackButton = await page.waitForFunction(
606-
// (expectedText) => {
607-
// const buttons = document.querySelectorAll('button');
608-
// return Array.from(buttons).find(button =>
609-
// button.textContent.includes(expectedText)
610-
// );
611-
// },
612-
// {timeout: 4000000},
613-
// "How can we make /test better"
614-
// );
615-
//
616-
// if (feedbackButton){
617-
// console.log("Feedback button found with correct text")
618-
// }else{
619-
// console.log("Feedback button not found")
620-
// throw new Error('Feedback button not found');
621-
// }
622-
623-
624-
564+
625565
} catch (e) {
626566
console.log("Test failed")
627567
console.log(e)
@@ -692,25 +632,7 @@ val testDocumentationErrorScript = """
692632
{ timeout: 4000000 }
693633
);
694634
695-
console.log("Input field re-enabled after error")
696-
697-
// const feedbackButton = await page.waitForFunction(
698-
// (expectedText) => {
699-
// const buttons = document.querySelectorAll('button');
700-
// return Array.from(buttons).find(button =>
701-
// button.textContent.includes(expectedText)
702-
// );
703-
// },
704-
// { timeout: 4000000 },
705-
// "How can we make /test better"
706-
// );
707-
//
708-
// if (feedbackButton){
709-
// console.log("Feedback button found with correct text after error")
710-
// }else{
711-
// console.log("Feedback button not found")
712-
// throw new Error('Feedback button not found');
713-
// }
635+
console.log("Input field re-enabled after error")
714636
715637
} catch (e) {
716638
console.log("Test failed")
@@ -783,24 +705,6 @@ val testRemoveFunctionErrorScript = """
783705
);
784706
785707
console.log("Input field re-enabled after error")
786-
787-
// const feedbackButton = await page.waitForFunction(
788-
// (expectedText) => {
789-
// const buttons = document.querySelectorAll('button');
790-
// return Array.from(buttons).find(button =>
791-
// button.textContent.includes(expectedText)
792-
// );
793-
// },
794-
// {timeout: 4000000},
795-
// "How can we make /test better"
796-
// );
797-
//
798-
// if (feedbackButton){
799-
// console.log("Feedback button found with correct text after error")
800-
// }else{
801-
// console.log("Feedback button not found")
802-
// throw new Error('Feedback button not found');
803-
// }
804708
805709
} catch (e) {
806710
console.log("Test failed")
@@ -874,23 +778,6 @@ val testMethodNotFoundErrorScript = """
874778
875779
console.log("Input field re-enabled after error")
876780
877-
// const feedbackButton = await page.waitForFunction(
878-
// (expectedText) => {
879-
// const buttons = document.querySelectorAll('button');
880-
// return Array.from(buttons).find(button =>
881-
// button.textContent.includes(expectedText)
882-
// );
883-
// },
884-
// {timeout: 4000000},
885-
// "How can we make /test better"
886-
// );
887-
//
888-
// if (feedbackButton){
889-
// console.log("Feedback button found with correct text after error")
890-
// }else{
891-
// console.log("Feedback button not found")
892-
// throw new Error('Feedback button not found');
893-
// }
894781
895782
} catch (e) {
896783
console.log("Test failed")

0 commit comments

Comments
 (0)