Skip to content

Commit d42f821

Browse files
committed
test
1 parent 12d9ce6 commit d42f821

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/amazonq/test/e2e/amazonq/chat.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Amazon Q Chat', function () {
3636
// Make sure you're logged in before every test
3737
registerAuthHook('amazonq-test-account')
3838
framework = new qTestingFramework('cwc', true, [])
39-
tab = framework.createTab()
39+
tab = framework.getSelectedTab()
4040

4141
/**
4242
* Since sending messages to the UI is asynchronous, race conditions can occur
@@ -45,7 +45,6 @@ describe('Amazon Q Chat', function () {
4545
*/
4646
const ok = await waitUntil(
4747
async () => {
48-
console.log(JSON.stringify(tab.getStore()))
4948
return tab.getStore().tabTitle === 'Chat'
5049
},
5150
{

packages/amazonq/test/e2e/amazonq/framework/framework.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,8 @@ export class qTestingFramework {
132132
public dispose() {
133133
vscode.Disposable.from(...this.disposables).dispose()
134134
this.mynahUI.destroy()
135+
136+
// create a refresh instance of the dom each time
137+
injectJSDOM()
135138
}
136139
}

0 commit comments

Comments
 (0)