@@ -228,6 +228,8 @@ describe('Amazon Q Code Review', function () {
228228 range
229229 )
230230
231+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
232+
231233 // Find the "View details" code action
232234 const viewDetailsAction = codeActions ?. find ( ( action ) => action . title . includes ( 'View details' ) )
233235 assert . ok ( viewDetailsAction , 'Could not find View details code action' )
@@ -259,6 +261,8 @@ describe('Amazon Q Code Review', function () {
259261 }
260262 )
261263
264+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
265+
262266 assert . ok ( webviewPanel , 'Security issue webview panel did not open after waiting' )
263267
264268 // Wait until viewDetailsAction.command is defined
@@ -274,6 +278,7 @@ describe('Amazon Q Code Review', function () {
274278 truthy : false ,
275279 }
276280 )
281+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
277282
278283 assert . ok ( viewDetailsActionDefined , 'viewDetailsAction.command was not defined after waiting' )
279284
@@ -302,6 +307,8 @@ describe('Amazon Q Code Review', function () {
302307 }
303308 )
304309
310+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
311+
305312 // Verify the fix was generated by checking if the issue has suggestedFixes
306313 assert . ok ( updatedIssue , 'Could not find updated issue' )
307314 assert . ok ( updatedIssue . suggestedFixes . length > 0 , 'No suggested fixes were generated' )
0 commit comments