Skip to content

Commit 8cf315a

Browse files
committed
checked out master version
1 parent 824635e commit 8cf315a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/amazonq/test/e2e/amazonq/VET.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ describe('Amazon Q E2E UI Test', function () {
1313
let webviewView: WebviewView
1414
let workbench: Workbench
1515
before(async function () {
16+
/* TO-DO
17+
possibly before the workbench executes Amazon Q: Open Chat, we can make sure that all the tabs are closed first*/
1618
workbench = new Workbench()
1719
await workbench.executeCommand('Amazon Q: Open Chat')
1820

@@ -62,12 +64,10 @@ describe('Amazon Q E2E UI Test', function () {
6264
Find all the tahs by looking for the close buttons and then close them one by one. To check if all the tabs are closed, we can check if the mynah-tabs-container is empty.
6365
*/
6466
try {
65-
// find all the close buttons and click them
6667
const closeButtons = await webviewView.findWebElements(By.css('.mynah-tabs-close-button'))
6768

6869
for (const button of closeButtons) {
6970
await button.click()
70-
// small delay to ensure the tab closes properly
7171
await new Promise((resolve) => setTimeout(resolve, 500))
7272
}
7373

@@ -90,9 +90,6 @@ describe('Amazon Q E2E UI Test', function () {
9090
await chatInput.sendKeys('Hello, Amazon Q!')
9191
const sendButton = await waitForElement(webviewView, By.css('.mynah-chat-prompt-button'))
9292
await sendButton.click()
93-
94-
// await new Promise((resolve) => setTimeout(resolve, 12000))
95-
// wait for response using conversation container check
9693
const responseReceived = await waitForChatResponse(webviewView)
9794
if (!responseReceived) {
9895
throw new Error('Chat response not received within timeout')

0 commit comments

Comments
 (0)