@stablyai/internal-playwright 0.1.0

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.
Files changed (297) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +5 -0
  3. package/README.md +168 -0
  4. package/ThirdPartyNotices.txt +6277 -0
  5. package/cli.js +19 -0
  6. package/index.d.ts +17 -0
  7. package/index.js +17 -0
  8. package/index.mjs +18 -0
  9. package/jsx-runtime.js +42 -0
  10. package/jsx-runtime.mjs +21 -0
  11. package/lib/agents/generateAgents.js +265 -0
  12. package/lib/agents/generator.md +102 -0
  13. package/lib/agents/healer.md +78 -0
  14. package/lib/agents/planner.md +135 -0
  15. package/lib/cli.js +274 -0
  16. package/lib/common/config.js +274 -0
  17. package/lib/common/config.js.map +7 -0
  18. package/lib/common/configLoader.js +377 -0
  19. package/lib/common/configLoader.js.map +7 -0
  20. package/lib/common/esmLoaderHost.js +102 -0
  21. package/lib/common/esmLoaderHost.js.map +7 -0
  22. package/lib/common/expectBundle.js +52 -0
  23. package/lib/common/expectBundle.js.map +7 -0
  24. package/lib/common/expectBundleImpl.js +389 -0
  25. package/lib/common/expectBundleImpl.js.map +7 -0
  26. package/lib/common/fixtures.js +302 -0
  27. package/lib/common/fixtures.js.map +7 -0
  28. package/lib/common/globals.js +58 -0
  29. package/lib/common/globals.js.map +7 -0
  30. package/lib/common/ipc.js +60 -0
  31. package/lib/common/ipc.js.map +7 -0
  32. package/lib/common/poolBuilder.js +85 -0
  33. package/lib/common/poolBuilder.js.map +7 -0
  34. package/lib/common/process.js +104 -0
  35. package/lib/common/process.js.map +7 -0
  36. package/lib/common/suiteUtils.js +140 -0
  37. package/lib/common/suiteUtils.js.map +7 -0
  38. package/lib/common/test.js +321 -0
  39. package/lib/common/test.js.map +7 -0
  40. package/lib/common/testLoader.js +100 -0
  41. package/lib/common/testLoader.js.map +7 -0
  42. package/lib/common/testType.js +310 -0
  43. package/lib/common/testType.js.map +7 -0
  44. package/lib/fsWatcher.js +67 -0
  45. package/lib/fsWatcher.js.map +7 -0
  46. package/lib/index.js +696 -0
  47. package/lib/index.js.map +7 -0
  48. package/lib/internalsForTest.js +42 -0
  49. package/lib/internalsForTest.js.map +7 -0
  50. package/lib/isomorphic/events.js +77 -0
  51. package/lib/isomorphic/events.js.map +7 -0
  52. package/lib/isomorphic/folders.js +30 -0
  53. package/lib/isomorphic/folders.js.map +7 -0
  54. package/lib/isomorphic/stringInternPool.js +69 -0
  55. package/lib/isomorphic/stringInternPool.js.map +7 -0
  56. package/lib/isomorphic/teleReceiver.js +507 -0
  57. package/lib/isomorphic/teleReceiver.js.map +7 -0
  58. package/lib/isomorphic/teleSuiteUpdater.js +137 -0
  59. package/lib/isomorphic/teleSuiteUpdater.js.map +7 -0
  60. package/lib/isomorphic/testServerConnection.js +211 -0
  61. package/lib/isomorphic/testServerConnection.js.map +7 -0
  62. package/lib/isomorphic/testServerInterface.js +16 -0
  63. package/lib/isomorphic/testServerInterface.js.map +7 -0
  64. package/lib/isomorphic/testTree.js +334 -0
  65. package/lib/isomorphic/testTree.js.map +7 -0
  66. package/lib/isomorphic/types.d.js +16 -0
  67. package/lib/isomorphic/types.d.js.map +7 -0
  68. package/lib/loader/loaderMain.js +59 -0
  69. package/lib/loader/loaderMain.js.map +7 -0
  70. package/lib/matchers/expect.js +325 -0
  71. package/lib/matchers/expect.js.map +7 -0
  72. package/lib/matchers/matcherHint.js +87 -0
  73. package/lib/matchers/matcherHint.js.map +7 -0
  74. package/lib/matchers/matchers.js +366 -0
  75. package/lib/matchers/matchers.js.map +7 -0
  76. package/lib/matchers/toBeTruthy.js +73 -0
  77. package/lib/matchers/toBeTruthy.js.map +7 -0
  78. package/lib/matchers/toEqual.js +99 -0
  79. package/lib/matchers/toEqual.js.map +7 -0
  80. package/lib/matchers/toHaveURL.js +102 -0
  81. package/lib/matchers/toHaveURL.js.map +7 -0
  82. package/lib/matchers/toMatchAriaSnapshot.js +159 -0
  83. package/lib/matchers/toMatchAriaSnapshot.js.map +7 -0
  84. package/lib/matchers/toMatchSnapshot.js +359 -0
  85. package/lib/matchers/toMatchSnapshot.js.map +7 -0
  86. package/lib/matchers/toMatchText.js +99 -0
  87. package/lib/matchers/toMatchText.js.map +7 -0
  88. package/lib/mcp/browser/actions.d.js +16 -0
  89. package/lib/mcp/browser/backend.js +93 -0
  90. package/lib/mcp/browser/backend.js.map +7 -0
  91. package/lib/mcp/browser/browserContextFactory.js +296 -0
  92. package/lib/mcp/browser/browserServerBackend.js +76 -0
  93. package/lib/mcp/browser/codegen.js +66 -0
  94. package/lib/mcp/browser/config.js +385 -0
  95. package/lib/mcp/browser/context.js +287 -0
  96. package/lib/mcp/browser/response.js +228 -0
  97. package/lib/mcp/browser/sessionLog.js +160 -0
  98. package/lib/mcp/browser/tab.js +277 -0
  99. package/lib/mcp/browser/tool.js +30 -0
  100. package/lib/mcp/browser/tool.js.map +7 -0
  101. package/lib/mcp/browser/tools/common.js +63 -0
  102. package/lib/mcp/browser/tools/console.js +44 -0
  103. package/lib/mcp/browser/tools/dialogs.js +60 -0
  104. package/lib/mcp/browser/tools/evaluate.js +70 -0
  105. package/lib/mcp/browser/tools/files.js +58 -0
  106. package/lib/mcp/browser/tools/form.js +74 -0
  107. package/lib/mcp/browser/tools/install.js +69 -0
  108. package/lib/mcp/browser/tools/keyboard.js +85 -0
  109. package/lib/mcp/browser/tools/mouse.js +107 -0
  110. package/lib/mcp/browser/tools/navigate.js +62 -0
  111. package/lib/mcp/browser/tools/network.js +54 -0
  112. package/lib/mcp/browser/tools/pdf.js +59 -0
  113. package/lib/mcp/browser/tools/screenshot.js +88 -0
  114. package/lib/mcp/browser/tools/snapshot.js +182 -0
  115. package/lib/mcp/browser/tools/tabs.js +67 -0
  116. package/lib/mcp/browser/tools/tool.js +49 -0
  117. package/lib/mcp/browser/tools/tracing.js +74 -0
  118. package/lib/mcp/browser/tools/utils.js +100 -0
  119. package/lib/mcp/browser/tools/verify.js +154 -0
  120. package/lib/mcp/browser/tools/wait.js +63 -0
  121. package/lib/mcp/browser/tools.js +80 -0
  122. package/lib/mcp/browser/tools.js.map +7 -0
  123. package/lib/mcp/browser/watchdog.js +44 -0
  124. package/lib/mcp/config.d.js +16 -0
  125. package/lib/mcp/extension/cdpRelay.js +351 -0
  126. package/lib/mcp/extension/extensionContextFactory.js +75 -0
  127. package/lib/mcp/extension/protocol.js +28 -0
  128. package/lib/mcp/index.js +61 -0
  129. package/lib/mcp/log.js +35 -0
  130. package/lib/mcp/program.js +96 -0
  131. package/lib/mcp/sdk/bundle.js +81 -0
  132. package/lib/mcp/sdk/bundle.js.map +7 -0
  133. package/lib/mcp/sdk/call.js +49 -0
  134. package/lib/mcp/sdk/call.js.map +7 -0
  135. package/lib/mcp/sdk/exports.js +32 -0
  136. package/lib/mcp/sdk/exports.js.map +7 -0
  137. package/lib/mcp/sdk/http.js +187 -0
  138. package/lib/mcp/sdk/http.js.map +7 -0
  139. package/lib/mcp/sdk/inProcessTransport.js +71 -0
  140. package/lib/mcp/sdk/inProcessTransport.js.map +7 -0
  141. package/lib/mcp/sdk/mdb.js +206 -0
  142. package/lib/mcp/sdk/mdb.js.map +7 -0
  143. package/lib/mcp/sdk/proxyBackend.js +128 -0
  144. package/lib/mcp/sdk/proxyBackend.js.map +7 -0
  145. package/lib/mcp/sdk/server.js +189 -0
  146. package/lib/mcp/sdk/server.js.map +7 -0
  147. package/lib/mcp/sdk/tool.js +51 -0
  148. package/lib/mcp/sdk/tool.js.map +7 -0
  149. package/lib/mcp/test/backend.js +67 -0
  150. package/lib/mcp/test/backend.js.map +7 -0
  151. package/lib/mcp/test/browserBackend.js +98 -0
  152. package/lib/mcp/test/context.js +48 -0
  153. package/lib/mcp/test/context.js.map +7 -0
  154. package/lib/mcp/test/generatorTools.js +122 -0
  155. package/lib/mcp/test/plannerTools.js +46 -0
  156. package/lib/mcp/test/seed.js +72 -0
  157. package/lib/mcp/test/streams.js +39 -0
  158. package/lib/mcp/test/streams.js.map +7 -0
  159. package/lib/mcp/test/testBackend.js +97 -0
  160. package/lib/mcp/test/testContext.js +176 -0
  161. package/lib/mcp/test/testTool.js +30 -0
  162. package/lib/mcp/test/testTools.js +115 -0
  163. package/lib/mcp/test/tool.js +30 -0
  164. package/lib/mcp/test/tool.js.map +7 -0
  165. package/lib/mcp/test/tools.js +150 -0
  166. package/lib/mcp/test/tools.js.map +7 -0
  167. package/lib/mcp/vscode/host.js +187 -0
  168. package/lib/mcp/vscode/main.js +77 -0
  169. package/lib/mcpBundleImpl.js +41 -0
  170. package/lib/mcpBundleImpl.js.map +7 -0
  171. package/lib/plugins/gitCommitInfoPlugin.js +198 -0
  172. package/lib/plugins/gitCommitInfoPlugin.js.map +7 -0
  173. package/lib/plugins/index.js +28 -0
  174. package/lib/plugins/index.js.map +7 -0
  175. package/lib/plugins/webServerPlugin.js +209 -0
  176. package/lib/plugins/webServerPlugin.js.map +7 -0
  177. package/lib/program.js +412 -0
  178. package/lib/program.js.map +7 -0
  179. package/lib/reporters/base.js +609 -0
  180. package/lib/reporters/base.js.map +7 -0
  181. package/lib/reporters/blob.js +135 -0
  182. package/lib/reporters/blob.js.map +7 -0
  183. package/lib/reporters/dot.js +82 -0
  184. package/lib/reporters/dot.js.map +7 -0
  185. package/lib/reporters/empty.js +32 -0
  186. package/lib/reporters/empty.js.map +7 -0
  187. package/lib/reporters/github.js +128 -0
  188. package/lib/reporters/github.js.map +7 -0
  189. package/lib/reporters/html.js +644 -0
  190. package/lib/reporters/html.js.map +7 -0
  191. package/lib/reporters/internalReporter.js +130 -0
  192. package/lib/reporters/internalReporter.js.map +7 -0
  193. package/lib/reporters/json.js +254 -0
  194. package/lib/reporters/json.js.map +7 -0
  195. package/lib/reporters/junit.js +230 -0
  196. package/lib/reporters/junit.js.map +7 -0
  197. package/lib/reporters/line.js +113 -0
  198. package/lib/reporters/line.js.map +7 -0
  199. package/lib/reporters/list.js +235 -0
  200. package/lib/reporters/list.js.map +7 -0
  201. package/lib/reporters/listModeReporter.js +69 -0
  202. package/lib/reporters/listModeReporter.js.map +7 -0
  203. package/lib/reporters/markdown.js +144 -0
  204. package/lib/reporters/markdown.js.map +7 -0
  205. package/lib/reporters/merge.js +535 -0
  206. package/lib/reporters/merge.js.map +7 -0
  207. package/lib/reporters/multiplexer.js +104 -0
  208. package/lib/reporters/multiplexer.js.map +7 -0
  209. package/lib/reporters/reporterV2.js +102 -0
  210. package/lib/reporters/reporterV2.js.map +7 -0
  211. package/lib/reporters/teleEmitter.js +297 -0
  212. package/lib/reporters/teleEmitter.js.map +7 -0
  213. package/lib/reporters/versions/blobV1.js +16 -0
  214. package/lib/reporters/versions/blobV1.js.map +7 -0
  215. package/lib/runner/dispatcher.js +491 -0
  216. package/lib/runner/dispatcher.js.map +7 -0
  217. package/lib/runner/failureTracker.js +72 -0
  218. package/lib/runner/failureTracker.js.map +7 -0
  219. package/lib/runner/lastRun.js +77 -0
  220. package/lib/runner/lastRun.js.map +7 -0
  221. package/lib/runner/loadUtils.js +333 -0
  222. package/lib/runner/loadUtils.js.map +7 -0
  223. package/lib/runner/loaderHost.js +89 -0
  224. package/lib/runner/loaderHost.js.map +7 -0
  225. package/lib/runner/processHost.js +161 -0
  226. package/lib/runner/processHost.js.map +7 -0
  227. package/lib/runner/projectUtils.js +241 -0
  228. package/lib/runner/projectUtils.js.map +7 -0
  229. package/lib/runner/rebase.js +189 -0
  230. package/lib/runner/rebase.js.map +7 -0
  231. package/lib/runner/reporters.js +137 -0
  232. package/lib/runner/reporters.js.map +7 -0
  233. package/lib/runner/runner.js +173 -0
  234. package/lib/runner/sigIntWatcher.js +96 -0
  235. package/lib/runner/sigIntWatcher.js.map +7 -0
  236. package/lib/runner/taskRunner.js +127 -0
  237. package/lib/runner/taskRunner.js.map +7 -0
  238. package/lib/runner/tasks.js +410 -0
  239. package/lib/runner/tasks.js.map +7 -0
  240. package/lib/runner/testGroups.js +117 -0
  241. package/lib/runner/testGroups.js.map +7 -0
  242. package/lib/runner/testRunner.js +390 -0
  243. package/lib/runner/testRunner.js.map +7 -0
  244. package/lib/runner/testServer.js +264 -0
  245. package/lib/runner/testServer.js.map +7 -0
  246. package/lib/runner/uiMode.js +271 -0
  247. package/lib/runner/uiModeReporter.js +30 -0
  248. package/lib/runner/uiModeReporter.js.map +7 -0
  249. package/lib/runner/vcs.js +72 -0
  250. package/lib/runner/vcs.js.map +7 -0
  251. package/lib/runner/watchMode.js +395 -0
  252. package/lib/runner/watchMode.js.map +7 -0
  253. package/lib/runner/workerHost.js +95 -0
  254. package/lib/runner/workerHost.js.map +7 -0
  255. package/lib/store.js +98 -0
  256. package/lib/third_party/pirates.js +62 -0
  257. package/lib/third_party/pirates.js.map +7 -0
  258. package/lib/third_party/tsconfig-loader.js +103 -0
  259. package/lib/third_party/tsconfig-loader.js.map +7 -0
  260. package/lib/transform/babelBundle.js +43 -0
  261. package/lib/transform/babelBundle.js.map +7 -0
  262. package/lib/transform/babelBundleImpl.js +461 -0
  263. package/lib/transform/babelBundleImpl.js.map +7 -0
  264. package/lib/transform/compilationCache.js +272 -0
  265. package/lib/transform/compilationCache.js.map +7 -0
  266. package/lib/transform/esmLoader.js +104 -0
  267. package/lib/transform/esmLoader.js.map +7 -0
  268. package/lib/transform/esmUtils.js +32 -0
  269. package/lib/transform/portTransport.js +67 -0
  270. package/lib/transform/portTransport.js.map +7 -0
  271. package/lib/transform/transform.js +293 -0
  272. package/lib/transform/transform.js.map +7 -0
  273. package/lib/util.js +403 -0
  274. package/lib/util.js.map +7 -0
  275. package/lib/utilsBundle.js +43 -0
  276. package/lib/utilsBundle.js.map +7 -0
  277. package/lib/utilsBundleImpl.js +100 -0
  278. package/lib/utilsBundleImpl.js.map +7 -0
  279. package/lib/worker/fixtureRunner.js +258 -0
  280. package/lib/worker/fixtureRunner.js.map +7 -0
  281. package/lib/worker/stepContext.js +34 -0
  282. package/lib/worker/testInfo.js +508 -0
  283. package/lib/worker/testInfo.js.map +7 -0
  284. package/lib/worker/testTracing.js +344 -0
  285. package/lib/worker/testTracing.js.map +7 -0
  286. package/lib/worker/timeoutManager.js +174 -0
  287. package/lib/worker/timeoutManager.js.map +7 -0
  288. package/lib/worker/util.js +31 -0
  289. package/lib/worker/util.js.map +7 -0
  290. package/lib/worker/workerMain.js +520 -0
  291. package/lib/worker/workerMain.js.map +7 -0
  292. package/package.json +74 -0
  293. package/test.d.ts +18 -0
  294. package/test.js +24 -0
  295. package/test.mjs +33 -0
  296. package/types/test.d.ts +10217 -0
  297. package/types/testReporter.d.ts +816 -0
@@ -0,0 +1,816 @@
1
+ // This file is generated by /utils/generate_types/index.js
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ import type { TestStatus, Metadata, PlaywrightTestOptions, PlaywrightWorkerOptions, ReporterDescription, FullConfig, FullProject, Location } from './test';
19
+ export type { FullConfig, FullProject, TestStatus, Location } from './test';
20
+
21
+ /**
22
+ * Result of the full test run.
23
+ */
24
+ export interface FullResult {
25
+ /**
26
+ * Status:
27
+ * - 'passed' - everything went as expected.
28
+ * - 'failed' - any test has failed.
29
+ * - 'timedout' - the global time has been reached.
30
+ * - 'interrupted' - interrupted by the user.
31
+ */
32
+ status: 'passed' | 'failed' | 'timedout' | 'interrupted';
33
+
34
+ /**
35
+ * Test start wall time.
36
+ */
37
+ startTime: Date;
38
+
39
+ /**
40
+ * Test duration in milliseconds.
41
+ */
42
+ duration: number;
43
+ }
44
+
45
+ /**
46
+ * Test runner notifies the reporter about various events during test execution. All methods of the reporter are
47
+ * optional.
48
+ *
49
+ * You can create a custom reporter by implementing a class with some of the reporter methods. Make sure to export
50
+ * this class as default.
51
+ *
52
+ * ```js
53
+ * // my-awesome-reporter.ts
54
+ * import type {
55
+ * Reporter, FullConfig, Suite, TestCase, TestResult, FullResult
56
+ * } from '@playwright/test/reporter';
57
+ *
58
+ * class MyReporter implements Reporter {
59
+ * constructor(options: { customOption?: string } = {}) {
60
+ * console.log(`my-awesome-reporter setup with customOption set to ${options.customOption}`);
61
+ * }
62
+ *
63
+ * onBegin(config: FullConfig, suite: Suite) {
64
+ * console.log(`Starting the run with ${suite.allTests().length} tests`);
65
+ * }
66
+ *
67
+ * onTestBegin(test: TestCase) {
68
+ * console.log(`Starting test ${test.title}`);
69
+ * }
70
+ *
71
+ * onTestEnd(test: TestCase, result: TestResult) {
72
+ * console.log(`Finished test ${test.title}: ${result.status}`);
73
+ * }
74
+ *
75
+ * onEnd(result: FullResult) {
76
+ * console.log(`Finished the run: ${result.status}`);
77
+ * }
78
+ * }
79
+ * export default MyReporter;
80
+ * ```
81
+ *
82
+ * Now use this reporter with
83
+ * [testConfig.reporter](https://playwright.dev/docs/api/class-testconfig#test-config-reporter). Learn more about
84
+ * [using reporters](https://playwright.dev/docs/test-reporters).
85
+ *
86
+ * ```js
87
+ * // playwright.config.ts
88
+ * import { defineConfig } from '@playwright/test';
89
+ *
90
+ * export default defineConfig({
91
+ * reporter: [['./my-awesome-reporter.ts', { customOption: 'some value' }]],
92
+ * });
93
+ * ```
94
+ *
95
+ * Here is a typical order of reporter calls:
96
+ * - [reporter.onBegin(config, suite)](https://playwright.dev/docs/api/class-reporter#reporter-on-begin) is called
97
+ * once with a root suite that contains all other suites and tests. Learn more about
98
+ * [suites hierarchy][Suite](https://playwright.dev/docs/api/class-suite).
99
+ * - [reporter.onTestBegin(test, result)](https://playwright.dev/docs/api/class-reporter#reporter-on-test-begin) is
100
+ * called for each test run. It is given a [TestCase](https://playwright.dev/docs/api/class-testcase) that is
101
+ * executed, and a [TestResult](https://playwright.dev/docs/api/class-testresult) that is almost empty. Test
102
+ * result will be populated while the test runs (for example, with steps and stdio) and will get final `status`
103
+ * once the test finishes.
104
+ * - [reporter.onStepBegin(test, result, step)](https://playwright.dev/docs/api/class-reporter#reporter-on-step-begin)
105
+ * and
106
+ * [reporter.onStepEnd(test, result, step)](https://playwright.dev/docs/api/class-reporter#reporter-on-step-end)
107
+ * are called for each executed step inside the test. When steps are executed, test run has not finished yet.
108
+ * - [reporter.onTestEnd(test, result)](https://playwright.dev/docs/api/class-reporter#reporter-on-test-end) is
109
+ * called when test run has finished. By this time, [TestResult](https://playwright.dev/docs/api/class-testresult)
110
+ * is complete and you can use
111
+ * [testResult.status](https://playwright.dev/docs/api/class-testresult#test-result-status),
112
+ * [testResult.error](https://playwright.dev/docs/api/class-testresult#test-result-error) and more.
113
+ * - [reporter.onEnd(result)](https://playwright.dev/docs/api/class-reporter#reporter-on-end) is called once after
114
+ * all tests that should run had finished.
115
+ * - [reporter.onExit()](https://playwright.dev/docs/api/class-reporter#reporter-on-exit) is called immediately
116
+ * before the test runner exits.
117
+ *
118
+ * Additionally,
119
+ * [reporter.onStdOut(chunk, test, result)](https://playwright.dev/docs/api/class-reporter#reporter-on-std-out) and
120
+ * [reporter.onStdErr(chunk, test, result)](https://playwright.dev/docs/api/class-reporter#reporter-on-std-err) are
121
+ * called when standard output is produced in the worker process, possibly during a test execution, and
122
+ * [reporter.onError(error)](https://playwright.dev/docs/api/class-reporter#reporter-on-error) is called when
123
+ * something went wrong outside of the test execution.
124
+ *
125
+ * If your custom reporter does not print anything to the terminal, implement
126
+ * [reporter.printsToStdio()](https://playwright.dev/docs/api/class-reporter#reporter-prints-to-stdio) and return
127
+ * `false`. This way, Playwright will use one of the standard terminal reporters in addition to your custom reporter
128
+ * to enhance user experience.
129
+ *
130
+ * **Merged report API notes**
131
+ *
132
+ * When merging multiple [`blob`](https://playwright.dev/docs/test-reporters#blob-reporter) reports via
133
+ * [`merge-reports`](https://playwright.dev/docs/test-sharding#merge-reports-cli) CLI command, the same
134
+ * [Reporter](https://playwright.dev/docs/api/class-reporter) API is called to produce final reports and all existing
135
+ * reporters should work without any changes. There some subtle differences though which might affect some custom
136
+ * reporters.
137
+ * - Projects from different shards are always kept as separate
138
+ * [TestProject](https://playwright.dev/docs/api/class-testproject) objects. E.g. if project 'Desktop Chrome' was
139
+ * sharded across 5 machines then there will be 5 instances of projects with the same name in the config passed to
140
+ * [reporter.onBegin(config, suite)](https://playwright.dev/docs/api/class-reporter#reporter-on-begin).
141
+ */
142
+ export interface Reporter {
143
+ /**
144
+ * Called after all tests have been run, or testing has been interrupted. Note that this method may return a [Promise]
145
+ * and Playwright Test will await it. Reporter is allowed to override the status and hence affect the exit code of the
146
+ * test runner.
147
+ * @param result Result of the full test run, `status` can be one of:
148
+ * - `'passed'` - Everything went as expected.
149
+ * - `'failed'` - Any test has failed.
150
+ * - `'timedout'` - The
151
+ * [testConfig.globalTimeout](https://playwright.dev/docs/api/class-testconfig#test-config-global-timeout) has
152
+ * been reached.
153
+ * - `'interrupted'` - Interrupted by the user.
154
+ */
155
+ onEnd?(result: FullResult): Promise<{ status?: FullResult['status'] } | undefined | void> | void;
156
+ /**
157
+ * Called once before running tests. All tests have been already discovered and put into a hierarchy of
158
+ * [Suite](https://playwright.dev/docs/api/class-suite)s.
159
+ * @param config Resolved configuration.
160
+ * @param suite The root suite that contains all projects, files and test cases.
161
+ */
162
+ onBegin?(config: FullConfig, suite: Suite): void;
163
+
164
+ /**
165
+ * Called on some global error, for example unhandled exception in the worker process.
166
+ * @param error The error.
167
+ */
168
+ onError?(error: TestError): void;
169
+
170
+ /**
171
+ * Called immediately before test runner exists. At this point all the reporters have received the
172
+ * [reporter.onEnd(result)](https://playwright.dev/docs/api/class-reporter#reporter-on-end) signal, so all the reports
173
+ * should be build. You can run the code that uploads the reports in this hook.
174
+ */
175
+ onExit?(): Promise<void>;
176
+
177
+ /**
178
+ * Called when something has been written to the standard error in the worker process.
179
+ * @param chunk Output chunk.
180
+ * @param test Test that was running. Note that output may happen when no test is running, in which case this will be [void].
181
+ * @param result Result of the test run, this object gets populated while the test runs.
182
+ */
183
+ onStdErr?(chunk: string|Buffer, test: void|TestCase, result: void|TestResult): void;
184
+
185
+ /**
186
+ * Called when something has been written to the standard output in the worker process.
187
+ * @param chunk Output chunk.
188
+ * @param test Test that was running. Note that output may happen when no test is running, in which case this will be [void].
189
+ * @param result Result of the test run, this object gets populated while the test runs.
190
+ */
191
+ onStdOut?(chunk: string|Buffer, test: void|TestCase, result: void|TestResult): void;
192
+
193
+ /**
194
+ * Called when a test step started in the worker process.
195
+ * @param test Test that the step belongs to.
196
+ * @param result Result of the test run, this object gets populated while the test runs.
197
+ * @param step Test step instance that has started.
198
+ */
199
+ onStepBegin?(test: TestCase, result: TestResult, step: TestStep): void;
200
+
201
+ /**
202
+ * Called when a test step finished in the worker process.
203
+ * @param test Test that the step belongs to.
204
+ * @param result Result of the test run.
205
+ * @param step Test step instance that has finished.
206
+ */
207
+ onStepEnd?(test: TestCase, result: TestResult, step: TestStep): void;
208
+
209
+ /**
210
+ * Called after a test has been started in the worker process.
211
+ * @param test Test that has been started.
212
+ * @param result Result of the test run, this object gets populated while the test runs.
213
+ */
214
+ onTestBegin?(test: TestCase, result: TestResult): void;
215
+
216
+ /**
217
+ * Called after a test has been finished in the worker process.
218
+ * @param test Test that has been finished.
219
+ * @param result Result of the test run.
220
+ */
221
+ onTestEnd?(test: TestCase, result: TestResult): void;
222
+
223
+ /**
224
+ * Whether this reporter uses stdio for reporting. When it does not, Playwright Test could add some output to enhance
225
+ * user experience. If your reporter does not print to the terminal, it is strongly recommended to return `false`.
226
+ */
227
+ printsToStdio?(): boolean;
228
+ }
229
+
230
+ export interface JSONReport {
231
+ config: Omit<FullConfig, 'projects'> & {
232
+ projects: {
233
+ outputDir: string,
234
+ repeatEach: number,
235
+ retries: number,
236
+ metadata: Metadata,
237
+ id: string,
238
+ name: string,
239
+ testDir: string,
240
+ testIgnore: string[],
241
+ testMatch: string[],
242
+ timeout: number,
243
+ }[],
244
+ };
245
+ suites: JSONReportSuite[];
246
+ errors: TestError[];
247
+ stats: {
248
+ startTime: string; // Date in ISO 8601 format.
249
+ duration: number; // In milliseconds;
250
+ expected: number;
251
+ unexpected: number;
252
+ flaky: number;
253
+ skipped: number;
254
+ }
255
+ }
256
+
257
+ export interface JSONReportSuite {
258
+ title: string;
259
+ file: string;
260
+ column: number;
261
+ line: number;
262
+ specs: JSONReportSpec[];
263
+ suites?: JSONReportSuite[];
264
+ }
265
+
266
+ export interface JSONReportSpec {
267
+ tags: string[],
268
+ title: string;
269
+ ok: boolean;
270
+ tests: JSONReportTest[];
271
+ id: string;
272
+ file: string;
273
+ line: number;
274
+ column: number;
275
+ }
276
+
277
+ export interface JSONReportTest {
278
+ timeout: number;
279
+ annotations: { type: string, description?: string }[],
280
+ expectedStatus: TestStatus;
281
+ projectName: string;
282
+ projectId: string;
283
+ results: JSONReportTestResult[];
284
+ status: 'skipped' | 'expected' | 'unexpected' | 'flaky';
285
+ }
286
+
287
+ export interface JSONReportError {
288
+ message: string;
289
+ location?: Location;
290
+ }
291
+
292
+ export interface JSONReportTestResult {
293
+ workerIndex: number;
294
+ parallelIndex: number;
295
+ status: TestStatus | undefined;
296
+ duration: number;
297
+ error: TestError | undefined;
298
+ errors: JSONReportError[];
299
+ stdout: JSONReportSTDIOEntry[];
300
+ stderr: JSONReportSTDIOEntry[];
301
+ retry: number;
302
+ steps?: JSONReportTestStep[];
303
+ startTime: string; // Date in ISO 8601 format.
304
+ attachments: {
305
+ name: string;
306
+ path?: string;
307
+ body?: string;
308
+ contentType: string;
309
+ }[];
310
+ annotations: { type: string, description?: string }[];
311
+ errorLocation?: Location;
312
+ }
313
+
314
+ export interface JSONReportTestStep {
315
+ title: string;
316
+ duration: number;
317
+ error: TestError | undefined;
318
+ steps?: JSONReportTestStep[];
319
+ }
320
+
321
+ export type JSONReportSTDIOEntry = { text: string } | { buffer: string };
322
+
323
+ // This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459
324
+ export {};
325
+
326
+
327
+ /**
328
+ * `Suite` is a group of tests. All tests in Playwright Test form the following hierarchy:
329
+ * - Root suite has a child suite for each [FullProject](https://playwright.dev/docs/api/class-fullproject).
330
+ * - Project suite #1. Has a child suite for each test file in the project.
331
+ * - File suite #1
332
+ * - [TestCase](https://playwright.dev/docs/api/class-testcase) #1
333
+ * - [TestCase](https://playwright.dev/docs/api/class-testcase) #2
334
+ * - Suite corresponding to a
335
+ * [test.describe([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe)
336
+ * group
337
+ * - [TestCase](https://playwright.dev/docs/api/class-testcase) #1 in a group
338
+ * - [TestCase](https://playwright.dev/docs/api/class-testcase) #2 in a group
339
+ * - < more test cases ... >
340
+ * - File suite #2
341
+ * - < more file suites ... >
342
+ * - Project suite #2
343
+ * - < more project suites ... >
344
+ *
345
+ * Reporter is given a root suite in the
346
+ * [reporter.onBegin(config, suite)](https://playwright.dev/docs/api/class-reporter#reporter-on-begin) method.
347
+ */
348
+ export interface Suite {
349
+ /**
350
+ * Returns the list of all test cases in this suite and its descendants, as opposite to
351
+ * [suite.tests](https://playwright.dev/docs/api/class-suite#suite-tests).
352
+ */
353
+ allTests(): Array<TestCase>;
354
+
355
+ /**
356
+ * Test cases and suites defined directly in this suite. The elements are returned in their declaration order. You can
357
+ * differentiate between various entry types by using
358
+ * [testCase.type](https://playwright.dev/docs/api/class-testcase#test-case-type) and
359
+ * [suite.type](https://playwright.dev/docs/api/class-suite#suite-type).
360
+ */
361
+ entries(): Array<TestCase|Suite>;
362
+
363
+ /**
364
+ * Configuration of the project this suite belongs to, or [void] for the root suite.
365
+ */
366
+ project(): FullProject|undefined;
367
+
368
+ /**
369
+ * Returns a list of titles from the root down to this suite.
370
+ */
371
+ titlePath(): Array<string>;
372
+
373
+ /**
374
+ * Location in the source where the suite is defined. Missing for root and project suites.
375
+ */
376
+ location?: Location;
377
+
378
+ /**
379
+ * Parent suite, missing for the root suite.
380
+ */
381
+ parent?: Suite;
382
+
383
+ /**
384
+ * Child suites. See [Suite](https://playwright.dev/docs/api/class-suite) for the hierarchy of suites.
385
+ */
386
+ suites: Array<Suite>;
387
+
388
+ /**
389
+ * Test cases in the suite. Note that only test cases defined directly in this suite are in the list. Any test cases
390
+ * defined in nested
391
+ * [test.describe([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe) groups are
392
+ * listed in the child [suite.suites](https://playwright.dev/docs/api/class-suite#suite-suites).
393
+ */
394
+ tests: Array<TestCase>;
395
+
396
+ /**
397
+ * Suite title.
398
+ * - Empty for root suite.
399
+ * - Project name for project suite.
400
+ * - File path for file suite.
401
+ * - Title passed to
402
+ * [test.describe([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe) for a
403
+ * group suite.
404
+ */
405
+ title: string;
406
+
407
+ /**
408
+ * Returns the type of the suite. The Suites form the following hierarchy: `root` -> `project` -> `file` -> `describe`
409
+ * -> ...`describe` -> `test`.
410
+ */
411
+ type: "root"|"project"|"file"|"describe";
412
+ }
413
+
414
+ /**
415
+ * `TestCase` corresponds to every
416
+ * [test.(call)(title[, details, body])](https://playwright.dev/docs/api/class-test#test-call) call in a test file.
417
+ * When a single [test.(call)(title[, details, body])](https://playwright.dev/docs/api/class-test#test-call) is
418
+ * running in multiple projects or repeated multiple times, it will have multiple `TestCase` objects in corresponding
419
+ * projects' suites.
420
+ */
421
+ export interface TestCase {
422
+ /**
423
+ * Whether the test is considered running fine. Non-ok tests fail the test run with non-zero exit code.
424
+ */
425
+ ok(): boolean;
426
+
427
+ /**
428
+ * Testing outcome for this test. Note that outcome is not the same as
429
+ * [testResult.status](https://playwright.dev/docs/api/class-testresult#test-result-status):
430
+ * - Test that is expected to fail and actually fails is `'expected'`.
431
+ * - Test that passes on a second retry is `'flaky'`.
432
+ */
433
+ outcome(): "skipped"|"expected"|"unexpected"|"flaky";
434
+
435
+ /**
436
+ * Returns a list of titles from the root down to this test.
437
+ */
438
+ titlePath(): Array<string>;
439
+
440
+ /**
441
+ * [testResult.annotations](https://playwright.dev/docs/api/class-testresult#test-result-annotations) of the last test
442
+ * run.
443
+ */
444
+ annotations: Array<{
445
+ /**
446
+ * Annotation type, for example `'skip'` or `'fail'`.
447
+ */
448
+ type: string;
449
+
450
+ /**
451
+ * Optional description.
452
+ */
453
+ description?: string;
454
+
455
+ /**
456
+ * Optional location in the source where the annotation is added.
457
+ */
458
+ location?: Location;
459
+ }>;
460
+
461
+ /**
462
+ * Expected test status.
463
+ * - Tests marked as
464
+ * [test.skip([title, details, body, condition, callback, description])](https://playwright.dev/docs/api/class-test#test-skip)
465
+ * or
466
+ * [test.fixme([title, details, body, condition, callback, description])](https://playwright.dev/docs/api/class-test#test-fixme)
467
+ * are expected to be `'skipped'`.
468
+ * - Tests marked as
469
+ * [test.fail([title, details, body, condition, callback, description])](https://playwright.dev/docs/api/class-test#test-fail)
470
+ * are expected to be `'failed'`.
471
+ * - Other tests are expected to be `'passed'`.
472
+ *
473
+ * See also [testResult.status](https://playwright.dev/docs/api/class-testresult#test-result-status) for the actual
474
+ * status.
475
+ */
476
+ expectedStatus: "passed"|"failed"|"timedOut"|"skipped"|"interrupted";
477
+
478
+ /**
479
+ * A test ID that is computed based on the test file name, test title and project name. The ID is unique within
480
+ * Playwright session.
481
+ */
482
+ id: string;
483
+
484
+ /**
485
+ * Location in the source where the test is defined.
486
+ */
487
+ location: Location;
488
+
489
+ /**
490
+ * Suite this test case belongs to.
491
+ */
492
+ parent: Suite;
493
+
494
+ /**
495
+ * Contains the repeat index when running in "repeat each" mode. This mode is enabled by passing `--repeat-each` to
496
+ * the [command line](https://playwright.dev/docs/test-cli).
497
+ */
498
+ repeatEachIndex: number;
499
+
500
+ /**
501
+ * Results for each run of this test.
502
+ */
503
+ results: Array<TestResult>;
504
+
505
+ /**
506
+ * The maximum number of retries given to this test in the configuration.
507
+ *
508
+ * Learn more about [test retries](https://playwright.dev/docs/test-retries#retries).
509
+ */
510
+ retries: number;
511
+
512
+ /**
513
+ * The list of tags defined on the test or suite via
514
+ * [test.(call)(title[, details, body])](https://playwright.dev/docs/api/class-test#test-call) or
515
+ * [test.describe([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe), as well as
516
+ * `@`-tokens extracted from test and suite titles.
517
+ *
518
+ * Learn more about [test tags](https://playwright.dev/docs/test-annotations#tag-tests).
519
+ */
520
+ tags: Array<string>;
521
+
522
+ /**
523
+ * The timeout given to the test. Affected by
524
+ * [testConfig.timeout](https://playwright.dev/docs/api/class-testconfig#test-config-timeout),
525
+ * [testProject.timeout](https://playwright.dev/docs/api/class-testproject#test-project-timeout),
526
+ * [test.setTimeout(timeout)](https://playwright.dev/docs/api/class-test#test-set-timeout),
527
+ * [test.slow([condition, callback, description])](https://playwright.dev/docs/api/class-test#test-slow) and
528
+ * [testInfo.setTimeout(timeout)](https://playwright.dev/docs/api/class-testinfo#test-info-set-timeout).
529
+ */
530
+ timeout: number;
531
+
532
+ /**
533
+ * Test title as passed to the
534
+ * [test.(call)(title[, details, body])](https://playwright.dev/docs/api/class-test#test-call) call.
535
+ */
536
+ title: string;
537
+
538
+ /**
539
+ * Returns "test". Useful for detecting test cases in
540
+ * [suite.entries()](https://playwright.dev/docs/api/class-suite#suite-entries).
541
+ */
542
+ type: "test";
543
+ }
544
+
545
+ /**
546
+ * Information about an error thrown during test execution.
547
+ */
548
+ export interface TestError {
549
+ /**
550
+ * Error cause. Set when there is a
551
+ * [cause](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) for the
552
+ * error. Will be `undefined` if there is no cause or if the cause is not an instance of [Error].
553
+ */
554
+ cause?: TestError;
555
+
556
+ /**
557
+ * Error location in the source code.
558
+ */
559
+ location?: Location;
560
+
561
+ /**
562
+ * Error message. Set when [Error] (or its subclass) has been thrown.
563
+ */
564
+ message?: string;
565
+
566
+ /**
567
+ * Source code snippet with highlighted error.
568
+ */
569
+ snippet?: string;
570
+
571
+ /**
572
+ * Error stack. Set when [Error] (or its subclass) has been thrown.
573
+ */
574
+ stack?: string;
575
+
576
+ /**
577
+ * The value that was thrown. Set when anything except the [Error] (or its subclass) has been thrown.
578
+ */
579
+ value?: string;
580
+ }
581
+
582
+ /**
583
+ * A result of a single [TestCase](https://playwright.dev/docs/api/class-testcase) run.
584
+ */
585
+ export interface TestResult {
586
+ /**
587
+ * The list of annotations applicable to the current test. Includes:
588
+ * - annotations defined on the test or suite via
589
+ * [test.(call)(title[, details, body])](https://playwright.dev/docs/api/class-test#test-call) and
590
+ * [test.describe([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe);
591
+ * - annotations implicitly added by methods
592
+ * [test.skip([title, details, body, condition, callback, description])](https://playwright.dev/docs/api/class-test#test-skip),
593
+ * [test.fixme([title, details, body, condition, callback, description])](https://playwright.dev/docs/api/class-test#test-fixme)
594
+ * and
595
+ * [test.fail([title, details, body, condition, callback, description])](https://playwright.dev/docs/api/class-test#test-fail);
596
+ * - annotations appended to
597
+ * [testInfo.annotations](https://playwright.dev/docs/api/class-testinfo#test-info-annotations) during the test
598
+ * execution.
599
+ *
600
+ * Annotations are available during test execution through
601
+ * [testInfo.annotations](https://playwright.dev/docs/api/class-testinfo#test-info-annotations).
602
+ *
603
+ * Learn more about [test annotations](https://playwright.dev/docs/test-annotations).
604
+ */
605
+ annotations: Array<{
606
+ /**
607
+ * Annotation type, for example `'skip'` or `'fail'`.
608
+ */
609
+ type: string;
610
+
611
+ /**
612
+ * Optional description.
613
+ */
614
+ description?: string;
615
+
616
+ /**
617
+ * Optional location in the source where the annotation is added.
618
+ */
619
+ location?: Location;
620
+ }>;
621
+
622
+ /**
623
+ * The list of files or buffers attached during the test execution through
624
+ * [testInfo.attachments](https://playwright.dev/docs/api/class-testinfo#test-info-attachments).
625
+ */
626
+ attachments: Array<{
627
+ /**
628
+ * Attachment name.
629
+ */
630
+ name: string;
631
+
632
+ /**
633
+ * Content type of this attachment to properly present in the report, for example `'application/json'` or
634
+ * `'image/png'`.
635
+ */
636
+ contentType: string;
637
+
638
+ /**
639
+ * Optional path on the filesystem to the attached file.
640
+ */
641
+ path?: string;
642
+
643
+ /**
644
+ * Optional attachment body used instead of a file.
645
+ */
646
+ body?: Buffer;
647
+ }>;
648
+
649
+ /**
650
+ * Running time in milliseconds.
651
+ */
652
+ duration: number;
653
+
654
+ /**
655
+ * First error thrown during test execution, if any. This is equal to the first element in
656
+ * [testResult.errors](https://playwright.dev/docs/api/class-testresult#test-result-errors).
657
+ */
658
+ error?: TestError;
659
+
660
+ /**
661
+ * Errors thrown during the test execution.
662
+ */
663
+ errors: Array<TestError>;
664
+
665
+ /**
666
+ * The index of the worker between `0` and `workers - 1`. It is guaranteed that workers running at the same time have
667
+ * a different `parallelIndex`.
668
+ */
669
+ parallelIndex: number;
670
+
671
+ /**
672
+ * When test is retried multiple times, each retry attempt is given a sequential number.
673
+ *
674
+ * Learn more about [test retries](https://playwright.dev/docs/test-retries#retries).
675
+ */
676
+ retry: number;
677
+
678
+ /**
679
+ * Start time of this particular test run.
680
+ */
681
+ startTime: Date;
682
+
683
+ /**
684
+ * The status of this test result. See also
685
+ * [testCase.expectedStatus](https://playwright.dev/docs/api/class-testcase#test-case-expected-status).
686
+ */
687
+ status: "passed"|"failed"|"timedOut"|"skipped"|"interrupted";
688
+
689
+ /**
690
+ * Anything written to the standard error during the test run.
691
+ */
692
+ stderr: Array<string|Buffer>;
693
+
694
+ /**
695
+ * Anything written to the standard output during the test run.
696
+ */
697
+ stdout: Array<string|Buffer>;
698
+
699
+ /**
700
+ * List of steps inside this test run.
701
+ */
702
+ steps: Array<TestStep>;
703
+
704
+ /**
705
+ * Index of the worker where the test was run. If the test was not run a single time, for example when the user
706
+ * interrupted testing, the only result will have a `workerIndex` equal to `-1`.
707
+ *
708
+ * Learn more about [parallelism and sharding](https://playwright.dev/docs/test-parallel) with Playwright Test.
709
+ */
710
+ workerIndex: number;
711
+ }
712
+
713
+ /**
714
+ * Represents a step in the [TestRun].
715
+ */
716
+ export interface TestStep {
717
+ /**
718
+ * Returns a list of step titles from the root step down to this step.
719
+ */
720
+ titlePath(): Array<string>;
721
+
722
+ /**
723
+ * The list of annotations applicable to the current test step.
724
+ */
725
+ annotations: Array<{
726
+ /**
727
+ * Annotation type, for example `'skip'`.
728
+ */
729
+ type: string;
730
+
731
+ /**
732
+ * Optional description.
733
+ */
734
+ description?: string;
735
+
736
+ /**
737
+ * Optional location in the source where the annotation is added.
738
+ */
739
+ location?: Location;
740
+ }>;
741
+
742
+ /**
743
+ * The list of files or buffers attached in the step execution through
744
+ * [testInfo.attach(name[, options])](https://playwright.dev/docs/api/class-testinfo#test-info-attach).
745
+ */
746
+ attachments: Array<{
747
+ /**
748
+ * Attachment name.
749
+ */
750
+ name: string;
751
+
752
+ /**
753
+ * Content type of this attachment to properly present in the report, for example `'application/json'` or
754
+ * `'image/png'`.
755
+ */
756
+ contentType: string;
757
+
758
+ /**
759
+ * Optional path on the filesystem to the attached file.
760
+ */
761
+ path?: string;
762
+
763
+ /**
764
+ * Optional attachment body used instead of a file.
765
+ */
766
+ body?: Buffer;
767
+ }>;
768
+
769
+ /**
770
+ * Step category to differentiate steps with different origin and verbosity. Built-in categories are:
771
+ * - `expect` for expect calls
772
+ * - `fixture` for fixtures setup and teardown
773
+ * - `hook` for hooks initialization and teardown
774
+ * - `pw:api` for Playwright API calls.
775
+ * - `test.step` for test.step API calls.
776
+ * - `test.attach` for testInfo.attach API calls.
777
+ */
778
+ category: string;
779
+
780
+ /**
781
+ * Running time in milliseconds.
782
+ */
783
+ duration: number;
784
+
785
+ /**
786
+ * Error thrown during the step execution, if any.
787
+ */
788
+ error?: TestError;
789
+
790
+ /**
791
+ * Optional location in the source where the step is defined.
792
+ */
793
+ location?: Location;
794
+
795
+ /**
796
+ * Parent step, if any.
797
+ */
798
+ parent?: TestStep;
799
+
800
+ /**
801
+ * Start time of this particular test step.
802
+ */
803
+ startTime: Date;
804
+
805
+ /**
806
+ * List of steps inside this step.
807
+ */
808
+ steps: Array<TestStep>;
809
+
810
+ /**
811
+ * User-friendly test step title.
812
+ */
813
+ title: string;
814
+ }
815
+
816
+