playwright 1.56.0-alpha-2025-09-25 → 1.56.0-alpha-1758818034000

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.
@@ -134,7 +134,7 @@ const setupPage = (0, import_testTool.defineTestTool)({
134
134
  description: "Setup the page for test",
135
135
  inputSchema: import_bundle.z.object({
136
136
  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.'),
137
- testLocation: import_bundle.z.string().optional().describe('Location of the seed test to use for setup. For example: "test/seed/default.spec.ts:20".')
137
+ testLocation: import_bundle.z.string().optional().describe('Location of the seed test to use for setup. For example: "tests/seed.spec.ts" or "tests/seed.spec.ts:20".')
138
138
  }),
139
139
  type: "readOnly"
140
140
  },
@@ -165,8 +165,15 @@ test('seed', async ({ page }) => {});
165
165
  timeout: 0,
166
166
  workers: 1,
167
167
  pauseAtEnd: true,
168
- disableConfigReporters: true
168
+ disableConfigReporters: true,
169
+ failOnLoadErrors: true
169
170
  });
171
+ if (result.status === "passed" && !reporter.suite?.allTests().length) {
172
+ return {
173
+ content: [{ type: "text", text: "Error: seed test not found." }],
174
+ isError: true
175
+ };
176
+ }
170
177
  const text = stream.content();
171
178
  return {
172
179
  content: [{ type: "text", text }],
@@ -274,7 +274,7 @@ class TestRunner extends import_events.default {
274
274
  const stop = new import_utils.ManualPromise();
275
275
  const tasks = [
276
276
  (0, import_tasks.createApplyRebaselinesTask)(),
277
- (0, import_tasks.createLoadTask)("out-of-process", { filterOnly: true, failOnLoadErrors: false, doNotRunDepsOutsideProjectFilter: params.doNotRunDepsOutsideProjectFilter }),
277
+ (0, import_tasks.createLoadTask)("out-of-process", { filterOnly: true, failOnLoadErrors: !!params.failOnLoadErrors, doNotRunDepsOutsideProjectFilter: params.doNotRunDepsOutsideProjectFilter }),
278
278
  ...(0, import_tasks.createRunTestsTasks)(config)
279
279
  ];
280
280
  const testRun = new import_tasks.TestRun(config, reporter, { pauseOnError: params.pauseOnError, pauseAtEnd: params.pauseAtEnd });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.56.0-alpha-2025-09-25",
3
+ "version": "1.56.0-alpha-1758818034000",
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.56.0-alpha-2025-09-25"
67
+ "playwright-core": "1.56.0-alpha-1758818034000"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "2.3.2"