playwright 1.58.0-alpha-2025-12-31 → 1.58.0-alpha-2026-01-02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,8 +62,11 @@ const planSchema = import_mcpBundle.z.object({
62
62
  tests: import_mcpBundle.z.array(import_mcpBundle.z.object({
63
63
  name: import_mcpBundle.z.string().describe("The name of the test"),
64
64
  file: import_mcpBundle.z.string().describe('The file the test should be saved to, for example: "tests/<suite-name>/<test-name>.spec.ts".'),
65
- steps: import_mcpBundle.z.array(import_mcpBundle.z.string().describe(`The steps to be executed to perform the test. For example: 'Click on the "Submit" button'`)),
66
- expectedResults: import_mcpBundle.z.array(import_mcpBundle.z.string().describe("The expected results of the steps for test to verify."))
65
+ steps: import_mcpBundle.z.array(import_mcpBundle.z.object({
66
+ perform: import_mcpBundle.z.string().describe(`Action to perform. For example: 'Click on the "Submit" button'.`),
67
+ expect: import_mcpBundle.z.string().optional().describe(`Expected result of the action where appropriate. For example: 'The page should show the "Thank you for your submission" message'`)
68
+ })),
69
+ postConditions: import_mcpBundle.z.array(import_mcpBundle.z.string().describe(`Post conditions to verify that are not covered by the steps. Can be empty`))
67
70
  }))
68
71
  }))
69
72
  });
@@ -118,12 +121,17 @@ const saveTestPlan = (0, import_testTool.defineTestTool)({
118
121
  lines.push(`**File:** \`${test.file}\``);
119
122
  lines.push(``);
120
123
  lines.push(`**Steps:**`);
121
- for (let k = 0; k < test.steps.length; k++)
122
- lines.push(` ${k + 1}. ${test.steps[k]}`);
123
- lines.push(``);
124
- lines.push(`**Expected Results:**`);
125
- for (const result of test.expectedResults)
126
- lines.push(` - ${result}`);
124
+ for (let k = 0; k < test.steps.length; k++) {
125
+ lines.push(` ${k + 1}. ${test.steps[k].perform}`);
126
+ if (test.steps[k].expect?.trim())
127
+ lines.push(` ${" ".repeat(String(k + 1).length)} Expect: ${test.steps[k].expect}`);
128
+ }
129
+ if (test.postConditions.length) {
130
+ lines.push(``);
131
+ lines.push(`**Post Conditions:**`);
132
+ for (const postCondition of test.postConditions)
133
+ lines.push(` - ${postCondition}`);
134
+ }
127
135
  }
128
136
  }
129
137
  lines.push(``);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.58.0-alpha-2025-12-31",
3
+ "version": "1.58.0-alpha-2026-01-02",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "license": "Apache-2.0",
66
66
  "dependencies": {
67
- "playwright-core": "1.58.0-alpha-2025-12-31"
67
+ "playwright-core": "1.58.0-alpha-2026-01-02"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "2.3.2"