prettier
This commit is contained in:
parent
3a4f3bc510
commit
1e399b7055
2 changed files with 27 additions and 19 deletions
|
|
@ -13,12 +13,7 @@ function delay(ms) {
|
|||
return new Promise((resolve) => setTimeout(resolve, ms, true));
|
||||
}
|
||||
|
||||
function getClientUrl(
|
||||
port,
|
||||
authDisabled,
|
||||
sessionToken,
|
||||
serverPort,
|
||||
) {
|
||||
function getClientUrl(port, authDisabled, sessionToken, serverPort) {
|
||||
const host = process.env.HOST || "localhost";
|
||||
const baseUrl = `http://${host}:${port}`;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ test.describe("CLI Arguments @cli", () => {
|
|||
page,
|
||||
}) => {
|
||||
// Simulate: npx . --transport sse --server-url http://localhost:3000/sse
|
||||
await page.goto("http://localhost:6274/?transport=sse&serverUrl=http://localhost:3000/sse");
|
||||
await page.goto(
|
||||
"http://localhost:6274/?transport=sse&serverUrl=http://localhost:3000/sse",
|
||||
);
|
||||
|
||||
// Wait for the Transport Type dropdown to be visible
|
||||
const selectTrigger = page.getByLabel("Transport Type");
|
||||
|
|
@ -26,7 +28,9 @@ test.describe("CLI Arguments @cli", () => {
|
|||
page,
|
||||
}) => {
|
||||
// Simulate config with streamable-http transport
|
||||
await page.goto("http://localhost:6274/?transport=streamable-http&serverUrl=http://localhost:3000/mcp");
|
||||
await page.goto(
|
||||
"http://localhost:6274/?transport=streamable-http&serverUrl=http://localhost:3000/mcp",
|
||||
);
|
||||
|
||||
// Wait for the Transport Type dropdown to be visible
|
||||
const selectTrigger = page.getByLabel("Transport Type");
|
||||
|
|
@ -58,4 +62,4 @@ test.describe("CLI Arguments @cli", () => {
|
|||
await expect(page.locator("#command-input")).toBeVisible();
|
||||
await expect(page.locator("#arguments-input")).toBeVisible();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue