Skip to content

Commit 017db30

Browse files
fixup! Integration tests for command line arguments
1 parent 74b8845 commit 017db30

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

client/e2e/cli-arguments.spec.ts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,7 @@ test.describe("CLI npx (npm exec) start up", { tag: "@cli" }, () => {
2121
const commandInput = page.getByRole("textbox", { name: "Command" });
2222
const argsInput = page.getByRole("textbox", { name: "Arguments" });
2323

24-
await expect(commandInput).toHaveValue("uv");
25-
await expect(argsInput).toHaveValue("run main.py");
26-
27-
// Click to expand environment variables section
28-
const envButton = page.getByRole("button", {
29-
name: /Environment Variables/i,
30-
});
31-
await envButton.click();
32-
33-
// Check that environment variables are populated (sorted alphabetically)
34-
const keyInputs = page.locator('input[placeholder="Key"]');
35-
const valueInputs = page.locator('input[placeholder="Value"]');
36-
37-
await expect(keyInputs.first()).toHaveValue("BAZ");
38-
await expect(valueInputs.first()).toHaveValue("bat");
24+
await expect(commandInput).toHaveValue("npm");
25+
await expect(argsInput).toHaveValue("--silent --prefix /path/to/mcp/servers/src/everything run start");
3926
});
4027
});

0 commit comments

Comments
 (0)