Skip to content

Commit 689e142

Browse files
Adjust existing test config
- Remove `@cli` tag, otherwise these tests will run twice, once with each scenario. Untagged, they run as part of the main e2e tests. - Use the `APP_URL`, consistent with other e2e tests.
1 parent 1c98277 commit 689e142

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/e2e/cli-arguments.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ const APP_URL = "http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=abc123";
55

66
// These tests verify that CLI arguments correctly set URL parameters
77
// The CLI should parse config files and pass transport/serverUrl as URL params
8-
test.describe("CLI Arguments @cli", () => {
8+
test.describe("CLI Arguments", () => {
99
test("should pass transport parameter from command line", async ({
1010
page,
1111
}) => {
1212
// Simulate: npx . --transport sse --server-url http://localhost:3000/sse
1313
await page.goto(
14-
"http://localhost:6274/?transport=sse&serverUrl=http://localhost:3000/sse",
14+
`${APP_URL}&transport=sse&serverUrl=http://localhost:3000/sse`,
1515
);
1616

1717
// Wait for the Transport Type dropdown to be visible
@@ -32,7 +32,7 @@ test.describe("CLI Arguments @cli", () => {
3232
}) => {
3333
// Simulate config with streamable-http transport
3434
await page.goto(
35-
"http://localhost:6274/?transport=streamable-http&serverUrl=http://localhost:3000/mcp",
35+
`${APP_URL}&transport=streamable-http&serverUrl=http://localhost:3000/mcp`,
3636
);
3737

3838
// Wait for the Transport Type dropdown to be visible
@@ -52,7 +52,7 @@ test.describe("CLI Arguments @cli", () => {
5252
page,
5353
}) => {
5454
// Simulate stdio config (no transport param needed)
55-
await page.goto("http://localhost:6274/");
55+
await page.goto(APP_URL);
5656

5757
// Wait for the Transport Type dropdown to be visible
5858
const selectTrigger = page.getByLabel("Transport Type");

0 commit comments

Comments
 (0)