You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(amazonq): messages at different remaining iteration counts aws#6381
## Problem
Previously the logic of showing different messages at different
remaining iteration counts are tested manually.
## Solution
Adding tests to automate the process.
it(`verifies messages after cancellation for remaining iterations at ${remaining!==undefined ? remaining : 'undefined'}`,async()=>{
615
+
consttotalIterations=10
616
+
constexpectedMessage=(()=>{
617
+
if(remaining===undefined||remaining>2){
618
+
return'I stopped generating your code. If you want to continue working on this task, provide another description.'
619
+
}elseif(remaining>0){
620
+
return`I stopped generating your code. If you want to continue working on this task, provide another description. You have ${remaining} out of ${totalIterations} code generations left.`
621
+
}else{
622
+
return"I stopped generating your code. You don't have more iterations left, however, you can start a new session."
0 commit comments