File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/amazonq/test/e2e/amazonq Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments