test(mcp): align workflow assertions with current guidance
This commit is contained in:
1 parent
f2dc749c86
commit
f8bb113c22
4 files changed
+22
-3
No files matched your search
@@ -61,6 +61,25 @@ it("rejects non-absolute deep-link values", () => {
|
||||
expect(result.success).toBe(false);
|
||||
});
|
||||
|
||||
it("accepts any argument count while validating each argument", () => {
|
||||
const input = electronActiveObservationInputSchema.parse({
|
||||
executable_path: "/opt/electron",
|
||||
application_path: "/opt/app/main.js",
|
||||
application_root: "/opt/app",
|
||||
args: Array.from({ length: 40 }, (_, index) => `--flag-${index}`),
|
||||
});
|
||||
|
||||
expect(input.args).toHaveLength(40);
|
||||
expect(
|
||||
electronActiveObservationInputSchema.safeParse({
|
||||
executable_path: "/opt/electron",
|
||||
application_path: "/opt/app/main.js",
|
||||
application_root: "/opt/app",
|
||||
args: ["x".repeat(4_097)],
|
||||
}).success,
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("redacts action inputs from Playwright failures", async () => {
|
||||
const selector = "#secret-selector";
|
||||
const input = electronActiveObservationInputSchema.parse({
|
||||
|
||||
Reference in new issue
Block a user