Skip to content

Commit b861bc9

Browse files
authored
DefaultAmazonQAppInitContext
1 parent 69b9fd5 commit b861bc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/amazonq/test/e2e/amazonq/testGen.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import vscode from 'vscode'
88
import { qTestingFramework } from './framework/framework'
99
import sinon from 'sinon'
1010
import { Messenger } from './framework/messenger'
11-
import { FollowUpTypes } from 'aws-core-vscode/amazonq'
11+
import { DefaultAmazonQAppInitContext, FollowUpTypes } from 'aws-core-vscode/amazonq'
1212
import { registerAuthHook, using, TestFolder, closeAllEditors } from 'aws-core-vscode/test'
1313
import { loginToIdC } from './utils/setup'
1414
import { waitUntil, workspaceUtils } from 'aws-core-vscode/shared'
@@ -75,6 +75,10 @@ describe('Amazon Q Test Generation', function () {
7575
})
7676

7777
beforeEach(async () => {
78+
await waitUntil(
79+
async () => DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().setUiReady(),
80+
{}
81+
)
7882
registerAuthHook('amazonq-test-account')
7983
framework = new qTestingFramework('testgen', true, [])
8084
tab = framework.createTab()

0 commit comments

Comments
 (0)