Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
45
node_modules/playwright/lib/mcp/test/plannerTools.js
generated
vendored
45
node_modules/playwright/lib/mcp/test/plannerTools.js
generated
vendored
@@ -35,16 +35,16 @@ __export(plannerTools_exports, {
|
||||
module.exports = __toCommonJS(plannerTools_exports);
|
||||
var import_fs = __toESM(require("fs"));
|
||||
var import_path = __toESM(require("path"));
|
||||
var import_bundle = require("../sdk/bundle");
|
||||
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
||||
var import_testTool = require("./testTool");
|
||||
const setupPage = (0, import_testTool.defineTestTool)({
|
||||
schema: {
|
||||
name: "planner_setup_page",
|
||||
title: "Setup planner page",
|
||||
description: "Setup the page for test planning",
|
||||
inputSchema: import_bundle.z.object({
|
||||
project: import_bundle.z.string().optional().describe('Project to use for setup. For example: "chromium", if no project is provided uses the first project in the config.'),
|
||||
seedFile: import_bundle.z.string().optional().describe('A seed file contains a single test that is used to setup the page for testing, for example: "tests/seed.spec.ts". If no seed file is provided, a default seed file is created.')
|
||||
inputSchema: import_mcpBundle.z.object({
|
||||
project: import_mcpBundle.z.string().optional().describe('Project to use for setup. For example: "chromium", if no project is provided uses the first project in the config.'),
|
||||
seedFile: import_mcpBundle.z.string().optional().describe('A seed file contains a single test that is used to setup the page for testing, for example: "tests/seed.spec.ts". If no seed file is provided, a default seed file is created.')
|
||||
}),
|
||||
type: "readOnly"
|
||||
},
|
||||
@@ -54,16 +54,18 @@ const setupPage = (0, import_testTool.defineTestTool)({
|
||||
return { content: [{ type: "text", text: output }], isError: status !== "paused" };
|
||||
}
|
||||
});
|
||||
const planSchema = import_bundle.z.object({
|
||||
overview: import_bundle.z.string().describe("A brief overview of the application to be tested"),
|
||||
suites: import_bundle.z.array(import_bundle.z.object({
|
||||
name: import_bundle.z.string().describe("The name of the suite"),
|
||||
seedFile: import_bundle.z.string().describe("A seed file that was used to setup the page for testing."),
|
||||
tests: import_bundle.z.array(import_bundle.z.object({
|
||||
name: import_bundle.z.string().describe("The name of the test"),
|
||||
file: import_bundle.z.string().describe('The file the test should be saved to, for example: "tests/<suite-name>/<test-name>.spec.ts".'),
|
||||
steps: import_bundle.z.array(import_bundle.z.string().describe(`The steps to be executed to perform the test. For example: 'Click on the "Submit" button'`)),
|
||||
expectedResults: import_bundle.z.array(import_bundle.z.string().describe("The expected results of the steps for test to verify."))
|
||||
const planSchema = import_mcpBundle.z.object({
|
||||
overview: import_mcpBundle.z.string().describe("A brief overview of the application to be tested"),
|
||||
suites: import_mcpBundle.z.array(import_mcpBundle.z.object({
|
||||
name: import_mcpBundle.z.string().describe("The name of the suite"),
|
||||
seedFile: import_mcpBundle.z.string().describe("A seed file that was used to setup the page for testing."),
|
||||
tests: import_mcpBundle.z.array(import_mcpBundle.z.object({
|
||||
name: import_mcpBundle.z.string().describe("The name of the test"),
|
||||
file: import_mcpBundle.z.string().describe('The file the test should be saved to, for example: "tests/<suite-name>/<test-name>.spec.ts".'),
|
||||
steps: import_mcpBundle.z.array(import_mcpBundle.z.object({
|
||||
perform: import_mcpBundle.z.string().optional().describe(`Action to perform. For example: 'Click on the "Submit" button'.`),
|
||||
expect: import_mcpBundle.z.string().array().describe(`Expected result of the action where appropriate. For example: 'The page should show the "Thank you for your submission" message'`)
|
||||
}))
|
||||
}))
|
||||
}))
|
||||
});
|
||||
@@ -90,8 +92,8 @@ const saveTestPlan = (0, import_testTool.defineTestTool)({
|
||||
title: "Save test plan as markdown file",
|
||||
description: "Save the test plan as a markdown file",
|
||||
inputSchema: planSchema.extend({
|
||||
name: import_bundle.z.string().describe('The name of the test plan, for example: "Test Plan".'),
|
||||
fileName: import_bundle.z.string().describe('The file to save the test plan to, for example: "spec/test.plan.md". Relative to the workspace root.')
|
||||
name: import_mcpBundle.z.string().describe('The name of the test plan, for example: "Test Plan".'),
|
||||
fileName: import_mcpBundle.z.string().describe('The file to save the test plan to, for example: "spec/test.plan.md". Relative to the workspace root.')
|
||||
}),
|
||||
type: "readOnly"
|
||||
},
|
||||
@@ -118,12 +120,11 @@ const saveTestPlan = (0, import_testTool.defineTestTool)({
|
||||
lines.push(`**File:** \`${test.file}\``);
|
||||
lines.push(``);
|
||||
lines.push(`**Steps:**`);
|
||||
for (let k = 0; k < test.steps.length; k++)
|
||||
lines.push(` ${k + 1}. ${test.steps[k]}`);
|
||||
lines.push(``);
|
||||
lines.push(`**Expected Results:**`);
|
||||
for (const result of test.expectedResults)
|
||||
lines.push(` - ${result}`);
|
||||
for (let k = 0; k < test.steps.length; k++) {
|
||||
lines.push(` ${k + 1}. ${test.steps[k].perform ?? "-"}`);
|
||||
for (const expect of test.steps[k].expect)
|
||||
lines.push(` - expect: ${expect}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
lines.push(``);
|
||||
|
||||
Reference in New Issue
Block a user