Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinkney-aws committed Feb 22, 2025
1 parent 12d9ce6 commit d42f821
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/amazonq/test/e2e/amazonq/chat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Amazon Q Chat', function () {
// Make sure you're logged in before every test
registerAuthHook('amazonq-test-account')
framework = new qTestingFramework('cwc', true, [])
tab = framework.createTab()
tab = framework.getSelectedTab()

/**
* Since sending messages to the UI is asynchronous, race conditions can occur
Expand All @@ -45,7 +45,6 @@ describe('Amazon Q Chat', function () {
*/
const ok = await waitUntil(
async () => {
console.log(JSON.stringify(tab.getStore()))
return tab.getStore().tabTitle === 'Chat'
},
{
Expand Down
3 changes: 3 additions & 0 deletions packages/amazonq/test/e2e/amazonq/framework/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,8 @@ export class qTestingFramework {
public dispose() {
vscode.Disposable.from(...this.disposables).dispose()
this.mynahUI.destroy()

// create a refresh instance of the dom each time
injectJSDOM()
}
}

0 comments on commit d42f821

Please sign in to comment.