From 1ada4d083e9a12349d421744f3a08e645027aa30 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Fri, 27 Jun 2025 18:21:03 -0700 Subject: [PATCH] add test for tab to accept --- extensions/vscode/e2e/tests/NextEdit.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/vscode/e2e/tests/NextEdit.test.ts b/extensions/vscode/e2e/tests/NextEdit.test.ts index 6e048b935..01d503098 100644 --- a/extensions/vscode/e2e/tests/NextEdit.test.ts +++ b/extensions/vscode/e2e/tests/NextEdit.test.ts @@ -29,15 +29,17 @@ describe("Next Edit", () => { expect(false).to.be.true; }).timeout(DEFAULT_TIMEOUT.XL); - it("Should accept Next Edit suggestion with Tab", async () => { - expect(false).to.be.true; + it.only("Should accept Next Edit suggestion with Tab", async () => { + // Trigger next edit by pressing tab. + const accepted = await NextEditActions.acceptNextEditSuggestion(editor); + expect (accepted).to.be.true; }).timeout(DEFAULT_TIMEOUT.XL); it("Should reject Next Edit suggestion with Esc", async () => { expect(false).to.be.true; }).timeout(DEFAULT_TIMEOUT.XL); - it.only("Should force a Next Edit", async () => { + it("Should force a Next Edit", async () => { const hasDecoration = await NextEditActions.forceNextEdit(editor); expect(hasDecoration).to.be.true; }).timeout(DEFAULT_TIMEOUT.XL);