Skip to content

Commit 645845f

Browse files
committed
reverting changes
1 parent c0e319d commit 645845f

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

packages/amazonq/test/e2e_new/amazonq/backslash.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
import './utils/setup'
66
import { WebviewView } from 'vscode-extension-tester'
7-
import { dismissOverlayIfPresent } from './framework/cleanupHelper'
7+
import { closeAllTabs, dismissOverlayIfPresent } from './framework/cleanupHelper'
88
import { testContext } from './utils/testContext'
99
import { clickBackslashCommand } from './framework/backslashHelper'
1010
import { clearChat } from './framework/chatHelper'
@@ -18,6 +18,10 @@ describe('Amazon Q Chat Backslash Functionality', function () {
1818
webviewView = testContext.webviewView!
1919
})
2020

21+
after(async function () {
22+
await closeAllTabs(webviewView)
23+
})
24+
2125
afterEach(async () => {
2226
// before closing the tabs, make sure that any overlays have been dismissed
2327
await dismissOverlayIfPresent(webviewView)

packages/amazonq/test/e2e_new/amazonq/switchModel.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import './utils/setup'
66
import { WebviewView } from 'vscode-extension-tester'
77
import { testContext } from './utils/testContext'
88
import { listModels, selectModel } from './framework/switchModelHelper'
9+
import { closeAllTabs } from './framework/cleanupHelper'
910

1011
describe('Amazon Q Switch Model Functionality', function () {
1112
// this timeout is the general timeout for the entire test suite
@@ -16,6 +17,10 @@ describe('Amazon Q Switch Model Functionality', function () {
1617
webviewView = testContext.webviewView!
1718
})
1819

20+
after(async function () {
21+
await closeAllTabs(webviewView)
22+
})
23+
1924
it('Switch Model Test', async () => {
2025
await listModels(webviewView)
2126
await selectModel(webviewView, 'Claude Sonnet 3.7')

packages/amazonq/test/e2e_new/amazonq/utils/setup.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import { signInToAmazonQ } from '../framework/authHelper'
6-
import { closeAllTabs } from '../framework/cleanupHelper'
7-
import { testContext } from './testContext'
86

97
before(async function () {
108
this.timeout(60000)
@@ -13,11 +11,3 @@ before(async function () {
1311
console.log('You have 60 seconds to complete this step\n\n')
1412
await signInToAmazonQ()
1513
})
16-
17-
after(async function () {
18-
this.timeout(30000)
19-
console.log('\n\n*** GLOBAL CLEANUP ***')
20-
console.log('Closing the chat tabs... \n\n')
21-
22-
await closeAllTabs(testContext.webviewView)
23-
})

0 commit comments

Comments
 (0)