From d4de89ea85c24032a18fef85c0a22d5cb30b315b Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 15 Aug 2025 13:10:36 -0700 Subject: [PATCH] remove unecessary test --- src/e2e/remote-stdin.test.ts | 83 ------------------------------------ 1 file changed, 83 deletions(-) delete mode 100644 src/e2e/remote-stdin.test.ts diff --git a/src/e2e/remote-stdin.test.ts b/src/e2e/remote-stdin.test.ts deleted file mode 100644 index ae8b43fb3..000000000 --- a/src/e2e/remote-stdin.test.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { createTestContext, cleanupTestContext, runCLI } from "../test-helpers/cli-helpers.js"; - -describe("E2E: Remote Command - Stdin Support", () => { - let context: any; - - beforeEach(async () => { - context = await createTestContext(); - }); - - afterEach(async () => { - await cleanupTestContext(context); - }); - - it("should work correctly when prompt is provided via stdin with remote -s flag", async () => { - const result = await runCLI(context, { - args: ["remote", "-s", "--url", "http://example.com"], - input: "Hello from stdin", - expectError: false, - timeout: 5000, - }); - - // Should succeed with direct URL connection - expect(result.exitCode).toBe(0); - - // Should output JSON response for --start mode - const output = result.stdout; - expect(output).toContain('"status":"success"'); - expect(output).toContain('"url":"http://example.com"'); - expect(output).toContain('"mode":"direct_url"'); - }); - - it("should combine stdin and command line prompt when both are provided", async () => { - const result = await runCLI(context, { - args: ["remote", "-s", "--url", "http://example.com", "Command line prompt"], - input: "Stdin input", - expectError: false, - timeout: 5000, - }); - - // Should succeed with direct URL connection - expect(result.exitCode).toBe(0); - - // Should output JSON response for --start mode - const output = result.stdout; - expect(output).toContain('"status":"success"'); - expect(output).toContain('"url":"http://example.com"'); - expect(output).toContain('"mode":"direct_url"'); - }); - - it("should work with just command line prompt (no stdin)", async () => { - const result = await runCLI(context, { - args: ["remote", "-s", "--url", "http://example.com", "Just command line"], - expectError: false, - timeout: 5000, - }); - - // Should succeed with direct URL connection - expect(result.exitCode).toBe(0); - - // Should output JSON response for --start mode - const output = result.stdout; - expect(output).toContain('"status":"success"'); - expect(output).toContain('"url":"http://example.com"'); - expect(output).toContain('"mode":"direct_url"'); - }); - - it("should work with no prompt at all", async () => { - const result = await runCLI(context, { - args: ["remote", "-s", "--url", "http://example.com"], - expectError: false, - timeout: 5000, - }); - - // Should succeed with direct URL connection - expect(result.exitCode).toBe(0); - - // Should output JSON response for --start mode - const output = result.stdout; - expect(output).toContain('"status":"success"'); - expect(output).toContain('"url":"http://example.com"'); - expect(output).toContain('"mode":"direct_url"'); - }); -}); \ No newline at end of file