Skip to content

Commit

Permalink
test(amazonq): use selected tab for chat rather than creating a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinkney-aws committed Feb 22, 2025
1 parent 12d9ce6 commit 0fe5ff7
Showing 1 changed file with 1 addition 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

0 comments on commit 0fe5ff7

Please sign in to comment.