File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
packages/amazonq/test/e2e/amazonq Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,21 @@ describe('Amazon Q Test Generation', function () {
213213 assert . deepStrictEqual ( acceptedMessage ?. followUp ?. options ?. [ 0 ] . pillText , 'Accepted' )
214214 } )
215215 } )
216+
217+ describe ( 'Accept code Additional test' , async ( ) => {
218+ it ( 'Clicks on accept' , async ( ) => {
219+ await tab . waitForButtons ( [ FollowUpTypes . AcceptCode , FollowUpTypes . RejectCode ] )
220+ tab . clickButton ( FollowUpTypes . AcceptCode )
221+ await tab . waitForChatFinishesLoading ( )
222+
223+ await waitForChatItems ( 7 )
224+ const acceptedMessage = tab . getChatItems ( ) [ 7 ]
225+
226+ assert . deepStrictEqual ( acceptedMessage ?. type , 'answer-part' )
227+ assert . deepStrictEqual ( acceptedMessage ?. followUp ?. options ?. [ 0 ] . pillText , 'Accepted' )
228+ assert . deepStrictEqual ( 'temp' , 'temp' )
229+ } )
230+ } )
216231 } )
217232 }
218233 } )
You can’t perform that action at this time.
0 commit comments