Skip to content

Commit d68b047

Browse files
committed
use util function closeAllEditors
1 parent f5a63b2 commit d68b047

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ describe('Amazon Q Test Generation', function () {
8181
})
8282

8383
afterEach(async () => {
84+
// Close all editors to prevent conflicts with subsequent tests trying to open the same file
85+
await closeAllEditors()
8486
framework.removeTab(tab.tabID)
8587
framework.dispose()
8688
sinon.restore()
@@ -175,10 +177,6 @@ describe('Amazon Q Test Generation', function () {
175177
await tab.waitForChatFinishesLoading()
176178
})
177179

178-
afterEach(async function () {
179-
await closeAllEditors(), {}
180-
})
181-
182180
describe('View diff', async () => {
183181
it('Clicks on view diff', async () => {
184182
const chatItems = tab.getChatItems()

0 commit comments

Comments
 (0)