Skip to content

Commit 6f99ed7

Browse files
committed
await closeAllEditors()
1 parent 9c12bb8 commit 6f99ed7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/amazonq/test/e2e/amazonq/testGen.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { qTestingFramework } from './framework/framework'
99
import sinon from 'sinon'
1010
import { Messenger } from './framework/messenger'
1111
import { FollowUpTypes } from 'aws-core-vscode/amazonq'
12-
import { registerAuthHook, using, TestFolder } from 'aws-core-vscode/test'
12+
import { registerAuthHook, using, TestFolder, closeAllEditors } from 'aws-core-vscode/test'
1313
import { loginToIdC } from './utils/setup'
1414
import { waitUntil, workspaceUtils } from 'aws-core-vscode/shared'
1515

@@ -173,6 +173,10 @@ describe('Amazon Q Test Generation', function () {
173173
await tab.waitForChatFinishesLoading()
174174
})
175175

176+
afterEach(async function () {
177+
await closeAllEditors()
178+
})
179+
176180
describe('View diff', async () => {
177181
it('Clicks on view diff', async () => {
178182
const chatItems = tab.getChatItems()

0 commit comments

Comments
 (0)