Skip to content

Commit 0fe5ff7

Browse files
committed
test(amazonq): use selected tab for chat rather than creating a new one
1 parent 12d9ce6 commit 0fe5ff7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-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
{

0 commit comments

Comments
 (0)