File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
packages/amazonq/test/e2e/amazonq Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,27 @@ describe('Amazon Q Test Generation', function () {
4242 ]
4343
4444 async function setupTestDocument ( filePath : string , language : string ) {
45- const document = await waitUntil ( async ( ) => {
46- const doc = await workspaceUtils . openTextDocument ( filePath )
47- return doc
48- } , { } )
45+ const document = await waitUntil (
46+ async ( ) => {
47+ const doc = await workspaceUtils . openTextDocument ( filePath )
48+ return doc
49+ } ,
50+ {
51+ interval : 1000 ,
52+ timeout : 30000 ,
53+ truthy : true ,
54+ }
55+ )
4956
5057 if ( ! document ) {
5158 assert . fail ( `Failed to open ${ language } file` )
5259 }
5360
54- await waitUntil ( async ( ) => await vscode . window . showTextDocument ( document , { preview : false } ) , { } )
61+ await waitUntil ( async ( ) => await vscode . window . showTextDocument ( document , { preview : false } ) , {
62+ interval : 1000 ,
63+ timeout : 30000 ,
64+ truthy : true ,
65+ } )
5566
5667 const activeEditor = vscode . window . activeTextEditor
5768 if ( ! activeEditor || activeEditor . document . uri . fsPath !== document . uri . fsPath ) {
You can’t perform that action at this time.
0 commit comments