@@ -65,7 +65,7 @@ describe('Amazon Q Code Transformation', function () {
6565 } )
6666
6767 describe ( 'Starting a transformation from chat' , ( ) => {
68- it . skip ( 'Can click through all user input forms for a Java upgrade' , async ( ) => {
68+ it . only ( 'Can click through all user input forms for a Java upgrade' , async ( ) => {
6969 sinon . stub ( startTransformByQ , 'getValidSQLConversionCandidateProjects' ) . resolves ( [ ] )
7070 sinon . stub ( GumbyController . prototype , 'validateLanguageUpgradeProjects' as keyof GumbyController ) . resolves ( [
7171 {
@@ -168,39 +168,18 @@ describe('Amazon Q Code Transformation', function () {
168168 . getChatMessenger ( )
169169 ?. sendJobFinishedMessage ( tab . tabID , CodeWhispererConstants . viewProposedChangesChatMessage )
170170
171- // wait for download message and feedback form to be sent
172- await tab . waitForEvent ( ( ) => tab . getChatItems ( ) . length > 15 , {
173- waitTimeoutInMs : 5000 ,
174- waitIntervalInMs : 1000 ,
175- } )
176-
177- const submitFeedbackForm = tab . getChatItems ( ) . pop ( )
178- assert . strictEqual ( submitFeedbackForm ?. formItems ?. [ 0 ] ?. id ?? undefined , 'TransformFeedbackRerunJob' )
179- assert . strictEqual ( submitFeedbackForm ?. formItems ?. [ 1 ] ?. id ?? undefined , 'TransformFeedbackViewLogs' )
180-
181- const submitFeedbackFormItemValues = {
182- TransformFeedbackRerunJob : 'No' ,
183- TransformFeedbackViewLogs : 'Yes' ,
184- }
185- const submitFeedbackFormValues : Record < string , string > = { ...submitFeedbackFormItemValues }
186-
187- const viewSummaryChatItem = tab . getChatItems ( ) [ tab . getChatItems ( ) . length - 2 ]
188- assert . strictEqual ( viewSummaryChatItem ?. body ?. includes ( 'view a summary' ) , true )
189-
190171 tab . clickCustomFormButton ( {
191- id : 'gumbyFeedbackFormConfirm' ,
192- text : 'Confirm' ,
193- formItemValues : submitFeedbackFormValues ,
172+ id : 'gumbyViewSummary' ,
173+ text : 'View summary' ,
194174 } )
195175
196- // wait for feedback received message to be sent
197- await tab . waitForEvent ( ( ) => tab . getChatItems ( ) . length > 16 , {
176+ await tab . waitForEvent ( ( ) => tab . getChatItems ( ) . length > 14 , {
198177 waitTimeoutInMs : 5000 ,
199178 waitIntervalInMs : 1000 ,
200179 } )
201180
202- const feedbackReceivedMessage = tab . getChatItems ( ) . pop ( )
203- assert . strictEqual ( feedbackReceivedMessage ?. body ?. includes ( 'Feedback received' ) ?? undefined , true )
181+ const viewSummaryChatItem = tab . getChatItems ( ) . pop ( )
182+ assert . strictEqual ( viewSummaryChatItem ?. body ?. includes ( 'view a summary' ) , true )
204183 } )
205184
206185 it ( 'CANNOT do a Java 21 to Java 17 transformation' , async ( ) => {
0 commit comments