@zohodesk/testinglibrary 0.0.9 → 0.0.11-n20-experimental

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 (685) hide show
  1. package/.babelrc +7 -2
  2. package/.eslintrc.js +5 -1
  3. package/.gitlab-ci.yml +191 -0
  4. package/README.md +151 -1
  5. package/build/common/data-generator/steps/DataGenerator.spec.js +19 -0
  6. package/build/common/data-generator/steps/DataGeneratorStepsHelper.js +19 -0
  7. package/build/common/multi-actor/steps/multiActorHandling.spec.js +26 -0
  8. package/build/common/searchFake/helpers/rpcRequestHelper.js +41 -0
  9. package/build/common/searchFake/steps/searchFake.spec.js +26 -0
  10. package/build/core/dataGenerator/DataGenerator.js +108 -0
  11. package/build/core/dataGenerator/DataGeneratorError.js +50 -0
  12. package/build/core/dataGenerator/DataGeneratorHelper.js +49 -0
  13. package/build/core/jest/preprocessor/jsPreprocessor.js +3 -9
  14. package/build/core/jest/setup/index.js +1 -7
  15. package/build/core/playwright/builtInFixtures/actorContext.js +75 -0
  16. package/build/core/playwright/builtInFixtures/addTags.js +19 -0
  17. package/build/core/playwright/builtInFixtures/cacheLayer.js +13 -0
  18. package/build/core/playwright/builtInFixtures/context.js +32 -0
  19. package/build/core/playwright/builtInFixtures/executionContext.js +17 -0
  20. package/build/core/playwright/builtInFixtures/i18N.js +41 -0
  21. package/build/core/playwright/builtInFixtures/index.js +46 -0
  22. package/build/core/playwright/builtInFixtures/page.js +38 -0
  23. package/build/core/playwright/builtInFixtures/unauthenticatedPage.js +18 -0
  24. package/build/core/playwright/clear-caches.js +49 -0
  25. package/build/core/playwright/codegen.js +4 -4
  26. package/build/core/playwright/configuration/Configuration.js +25 -0
  27. package/build/core/playwright/configuration/ConfigurationHelper.js +43 -0
  28. package/build/core/playwright/configuration/UserArgs.js +12 -0
  29. package/build/core/playwright/constants/browserTypes.js +12 -0
  30. package/build/core/playwright/constants/fileMutexConfig.js +9 -0
  31. package/build/core/playwright/custom-commands.js +1 -2
  32. package/build/core/playwright/env-initializer.js +28 -6
  33. package/build/core/playwright/fixtures.js +24 -0
  34. package/build/core/playwright/helpers/additionalProfiles.js +25 -0
  35. package/build/core/playwright/helpers/auth/accountLogin.js +21 -0
  36. package/build/core/playwright/helpers/auth/checkAuthCookies.js +41 -0
  37. package/build/core/playwright/helpers/auth/getUrlOrigin.js +13 -0
  38. package/build/core/playwright/helpers/auth/getUsers.js +118 -0
  39. package/build/core/playwright/helpers/auth/index.js +76 -0
  40. package/build/core/playwright/helpers/auth/loginDefaultStepsHelper.js +54 -0
  41. package/build/core/playwright/helpers/auth/loginSteps.js +51 -0
  42. package/build/core/playwright/helpers/checkAuthDirectory.js +27 -0
  43. package/build/core/playwright/helpers/configFileNameProvider.js +31 -0
  44. package/build/core/playwright/helpers/customFixturesHelper.js +58 -0
  45. package/build/core/playwright/helpers/fileMutex.js +72 -0
  46. package/build/core/playwright/helpers/getUserFixtures.js +23 -0
  47. package/build/core/playwright/helpers/mergeObjects.js +13 -0
  48. package/build/core/playwright/helpers/parseUserArgs.js +10 -0
  49. package/build/core/playwright/index.js +10 -98
  50. package/build/core/playwright/readConfigFile.js +66 -24
  51. package/build/core/playwright/report-generator.js +9 -8
  52. package/build/core/playwright/runner/Runner.js +22 -0
  53. package/build/core/playwright/runner/RunnerHelper.js +43 -0
  54. package/build/core/playwright/runner/RunnerTypes.js +17 -0
  55. package/build/core/playwright/runner/SpawnRunner.js +115 -0
  56. package/build/core/playwright/setup/config-creator.js +73 -24
  57. package/build/core/playwright/setup/config-utils.js +92 -13
  58. package/build/core/playwright/setup/custom-reporter.js +136 -0
  59. package/build/core/playwright/setup/qc-custom-reporter.js +291 -0
  60. package/build/core/playwright/tagProcessor.js +69 -0
  61. package/build/core/playwright/test-runner.js +55 -43
  62. package/build/core/playwright/types.js +44 -0
  63. package/build/core/playwright/validateFeature.js +28 -0
  64. package/build/decorators.d.ts +1 -1
  65. package/build/decorators.js +1 -1
  66. package/build/index.d.ts +76 -3
  67. package/build/index.js +63 -17
  68. package/build/lib/cli.js +28 -4
  69. package/build/lib/post-install.js +19 -11
  70. package/build/parser/parser.js +0 -1
  71. package/build/setup-folder-structure/helper.js +37 -0
  72. package/build/setup-folder-structure/reportEnhancement/addonScript.html +25 -0
  73. package/build/setup-folder-structure/reportEnhancement/reportAlteration.js +25 -0
  74. package/build/setup-folder-structure/samples/accountLogin-sample.js +19 -0
  75. package/build/setup-folder-structure/samples/actors-index.js +2 -0
  76. package/build/setup-folder-structure/samples/auth-setup-sample.js +10 -67
  77. package/build/setup-folder-structure/samples/editions-index.js +3 -0
  78. package/build/setup-folder-structure/samples/free-sample.json +25 -0
  79. package/build/setup-folder-structure/samples/git-ignore.sample.js +8 -4
  80. package/build/setup-folder-structure/samples/settings.json +7 -0
  81. package/build/setup-folder-structure/samples/testSetup-sample.js +14 -0
  82. package/build/setup-folder-structure/samples/uat-config-sample.js +7 -3
  83. package/build/setup-folder-structure/setupProject.js +33 -10
  84. package/build/test/core/playwright/__tests__/tagProcessor.test.js +94 -0
  85. package/build/test/core/playwright/__tests__/validateFeature.test.js +69 -0
  86. package/build/test/core/playwright/buildInFixtures/__tests__/executionContext.test.js +27 -0
  87. package/build/test/core/playwright/configuration/__tests__/Configuration.test.js +53 -0
  88. package/build/test/core/playwright/helpers/__tests__/additionalProfiles.test.js +45 -0
  89. package/build/test/core/playwright/helpers/__tests__/configFileNameProvider.test.js +34 -0
  90. package/build/test/core/playwright/helpers/__tests__/customFixturesHelper.test.js +51 -0
  91. package/build/test/core/playwright/helpers/__tests__/fileMutex.test.js +79 -0
  92. package/build/test/core/playwright/helpers/__tests__/getUsers_ListOfActors.test.js +80 -0
  93. package/build/test/core/playwright/runner/__tests__/RunnerHelper.test.js +16 -0
  94. package/build/test/core/playwright/runner/__tests__/SpawnRunner.test.js +27 -0
  95. package/build/utils/cliArgsToObject.js +8 -1
  96. package/build/utils/commonUtils.js +17 -0
  97. package/build/utils/fileUtils.js +60 -4
  98. package/build/utils/logger.js +1 -31
  99. package/build/utils/rootPath.js +16 -9
  100. package/build/utils/stepDefinitionsFormatter.js +1 -2
  101. package/changelog.md +167 -0
  102. package/jest.config.js +29 -11
  103. package/npm-shrinkwrap.json +9688 -6736
  104. package/package.json +33 -27
  105. package/playwright-mcp-test/node_modules/.package-lock.json +54 -0
  106. package/playwright-mcp-test/node_modules/@playwright/mcp/LICENSE +202 -0
  107. package/playwright-mcp-test/node_modules/@playwright/mcp/README.md +907 -0
  108. package/playwright-mcp-test/node_modules/@playwright/mcp/cli.js +24 -0
  109. package/playwright-mcp-test/node_modules/@playwright/mcp/config.d.ts +174 -0
  110. package/playwright-mcp-test/node_modules/@playwright/mcp/index.d.ts +23 -0
  111. package/playwright-mcp-test/node_modules/@playwright/mcp/index.js +19 -0
  112. package/playwright-mcp-test/node_modules/@playwright/mcp/package.json +52 -0
  113. package/playwright-mcp-test/node_modules/playwright/LICENSE +202 -0
  114. package/playwright-mcp-test/node_modules/playwright/NOTICE +5 -0
  115. package/playwright-mcp-test/node_modules/playwright/README.md +168 -0
  116. package/playwright-mcp-test/node_modules/playwright/ThirdPartyNotices.txt +6277 -0
  117. package/playwright-mcp-test/node_modules/playwright/cli.js +19 -0
  118. package/playwright-mcp-test/node_modules/playwright/index.d.ts +17 -0
  119. package/playwright-mcp-test/node_modules/playwright/index.js +17 -0
  120. package/playwright-mcp-test/node_modules/playwright/index.mjs +18 -0
  121. package/playwright-mcp-test/node_modules/playwright/jsx-runtime.js +42 -0
  122. package/playwright-mcp-test/node_modules/playwright/jsx-runtime.mjs +21 -0
  123. package/playwright-mcp-test/node_modules/playwright/lib/agents/generateAgents.js +368 -0
  124. package/playwright-mcp-test/node_modules/playwright/lib/agents/generator.agent.md +101 -0
  125. package/playwright-mcp-test/node_modules/playwright/lib/agents/healer.agent.md +77 -0
  126. package/playwright-mcp-test/node_modules/playwright/lib/agents/planner.agent.md +138 -0
  127. package/playwright-mcp-test/node_modules/playwright/lib/agents/test-coverage.prompt.md +31 -0
  128. package/playwright-mcp-test/node_modules/playwright/lib/agents/test-generate.prompt.md +8 -0
  129. package/playwright-mcp-test/node_modules/playwright/lib/agents/test-heal.prompt.md +6 -0
  130. package/playwright-mcp-test/node_modules/playwright/lib/agents/test-plan.prompt.md +9 -0
  131. package/playwright-mcp-test/node_modules/playwright/lib/common/config.js +280 -0
  132. package/playwright-mcp-test/node_modules/playwright/lib/common/configLoader.js +344 -0
  133. package/playwright-mcp-test/node_modules/playwright/lib/common/esmLoaderHost.js +102 -0
  134. package/playwright-mcp-test/node_modules/playwright/lib/common/expectBundle.js +52 -0
  135. package/playwright-mcp-test/node_modules/playwright/lib/common/expectBundleImpl.js +389 -0
  136. package/playwright-mcp-test/node_modules/playwright/lib/common/fixtures.js +302 -0
  137. package/playwright-mcp-test/node_modules/playwright/lib/common/globals.js +58 -0
  138. package/playwright-mcp-test/node_modules/playwright/lib/common/ipc.js +60 -0
  139. package/playwright-mcp-test/node_modules/playwright/lib/common/poolBuilder.js +85 -0
  140. package/playwright-mcp-test/node_modules/playwright/lib/common/process.js +104 -0
  141. package/playwright-mcp-test/node_modules/playwright/lib/common/suiteUtils.js +140 -0
  142. package/playwright-mcp-test/node_modules/playwright/lib/common/test.js +321 -0
  143. package/playwright-mcp-test/node_modules/playwright/lib/common/testLoader.js +101 -0
  144. package/playwright-mcp-test/node_modules/playwright/lib/common/testType.js +298 -0
  145. package/playwright-mcp-test/node_modules/playwright/lib/common/validators.js +68 -0
  146. package/playwright-mcp-test/node_modules/playwright/lib/fsWatcher.js +67 -0
  147. package/playwright-mcp-test/node_modules/playwright/lib/index.js +682 -0
  148. package/playwright-mcp-test/node_modules/playwright/lib/internalsForTest.js +42 -0
  149. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/events.js +77 -0
  150. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/folders.js +30 -0
  151. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/stringInternPool.js +69 -0
  152. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/teleReceiver.js +508 -0
  153. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +137 -0
  154. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testServerConnection.js +211 -0
  155. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testServerInterface.js +16 -0
  156. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testTree.js +334 -0
  157. package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/types.d.js +16 -0
  158. package/playwright-mcp-test/node_modules/playwright/lib/loader/loaderMain.js +59 -0
  159. package/playwright-mcp-test/node_modules/playwright/lib/matchers/expect.js +325 -0
  160. package/playwright-mcp-test/node_modules/playwright/lib/matchers/matcherHint.js +87 -0
  161. package/playwright-mcp-test/node_modules/playwright/lib/matchers/matchers.js +366 -0
  162. package/playwright-mcp-test/node_modules/playwright/lib/matchers/toBeTruthy.js +73 -0
  163. package/playwright-mcp-test/node_modules/playwright/lib/matchers/toEqual.js +99 -0
  164. package/playwright-mcp-test/node_modules/playwright/lib/matchers/toHaveURL.js +102 -0
  165. package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +159 -0
  166. package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchSnapshot.js +341 -0
  167. package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchText.js +99 -0
  168. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/actions.d.js +16 -0
  169. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +296 -0
  170. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +76 -0
  171. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/codegen.js +66 -0
  172. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/config.js +385 -0
  173. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/context.js +287 -0
  174. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/response.js +228 -0
  175. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/sessionLog.js +160 -0
  176. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tab.js +280 -0
  177. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/common.js +63 -0
  178. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/console.js +44 -0
  179. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +60 -0
  180. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +69 -0
  181. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/files.js +58 -0
  182. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/form.js +73 -0
  183. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/install.js +69 -0
  184. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +84 -0
  185. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/mouse.js +107 -0
  186. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/navigate.js +62 -0
  187. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/network.js +54 -0
  188. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/pdf.js +59 -0
  189. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +106 -0
  190. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +181 -0
  191. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tabs.js +67 -0
  192. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tool.js +49 -0
  193. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tracing.js +74 -0
  194. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/utils.js +89 -0
  195. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/verify.js +153 -0
  196. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/wait.js +63 -0
  197. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools.js +80 -0
  198. package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/watchdog.js +44 -0
  199. package/playwright-mcp-test/node_modules/playwright/lib/mcp/config.d.js +16 -0
  200. package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/cdpRelay.js +351 -0
  201. package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +75 -0
  202. package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/protocol.js +28 -0
  203. package/playwright-mcp-test/node_modules/playwright/lib/mcp/index.js +61 -0
  204. package/playwright-mcp-test/node_modules/playwright/lib/mcp/log.js +35 -0
  205. package/playwright-mcp-test/node_modules/playwright/lib/mcp/program.js +96 -0
  206. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/bundle.js +81 -0
  207. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/exports.js +32 -0
  208. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/http.js +187 -0
  209. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +71 -0
  210. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/mdb.js +206 -0
  211. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/proxyBackend.js +128 -0
  212. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/server.js +189 -0
  213. package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/tool.js +51 -0
  214. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/browserBackend.js +98 -0
  215. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
  216. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/plannerTools.js +46 -0
  217. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/seed.js +82 -0
  218. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/streams.js +39 -0
  219. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testBackend.js +97 -0
  220. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testContext.js +176 -0
  221. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
  222. package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testTools.js +115 -0
  223. package/playwright-mcp-test/node_modules/playwright/lib/mcpBundleImpl.js +41 -0
  224. package/playwright-mcp-test/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +198 -0
  225. package/playwright-mcp-test/node_modules/playwright/lib/plugins/index.js +28 -0
  226. package/playwright-mcp-test/node_modules/playwright/lib/plugins/webServerPlugin.js +209 -0
  227. package/playwright-mcp-test/node_modules/playwright/lib/program.js +411 -0
  228. package/playwright-mcp-test/node_modules/playwright/lib/reporters/base.js +609 -0
  229. package/playwright-mcp-test/node_modules/playwright/lib/reporters/blob.js +135 -0
  230. package/playwright-mcp-test/node_modules/playwright/lib/reporters/dot.js +82 -0
  231. package/playwright-mcp-test/node_modules/playwright/lib/reporters/empty.js +32 -0
  232. package/playwright-mcp-test/node_modules/playwright/lib/reporters/github.js +128 -0
  233. package/playwright-mcp-test/node_modules/playwright/lib/reporters/html.js +623 -0
  234. package/playwright-mcp-test/node_modules/playwright/lib/reporters/internalReporter.js +130 -0
  235. package/playwright-mcp-test/node_modules/playwright/lib/reporters/json.js +254 -0
  236. package/playwright-mcp-test/node_modules/playwright/lib/reporters/junit.js +232 -0
  237. package/playwright-mcp-test/node_modules/playwright/lib/reporters/line.js +113 -0
  238. package/playwright-mcp-test/node_modules/playwright/lib/reporters/list.js +235 -0
  239. package/playwright-mcp-test/node_modules/playwright/lib/reporters/listModeReporter.js +69 -0
  240. package/playwright-mcp-test/node_modules/playwright/lib/reporters/markdown.js +144 -0
  241. package/playwright-mcp-test/node_modules/playwright/lib/reporters/merge.js +541 -0
  242. package/playwright-mcp-test/node_modules/playwright/lib/reporters/multiplexer.js +104 -0
  243. package/playwright-mcp-test/node_modules/playwright/lib/reporters/reporterV2.js +102 -0
  244. package/playwright-mcp-test/node_modules/playwright/lib/reporters/teleEmitter.js +298 -0
  245. package/playwright-mcp-test/node_modules/playwright/lib/reporters/versions/blobV1.js +16 -0
  246. package/playwright-mcp-test/node_modules/playwright/lib/runner/dispatcher.js +491 -0
  247. package/playwright-mcp-test/node_modules/playwright/lib/runner/failureTracker.js +72 -0
  248. package/playwright-mcp-test/node_modules/playwright/lib/runner/lastRun.js +77 -0
  249. package/playwright-mcp-test/node_modules/playwright/lib/runner/loadUtils.js +334 -0
  250. package/playwright-mcp-test/node_modules/playwright/lib/runner/loaderHost.js +89 -0
  251. package/playwright-mcp-test/node_modules/playwright/lib/runner/processHost.js +161 -0
  252. package/playwright-mcp-test/node_modules/playwright/lib/runner/projectUtils.js +241 -0
  253. package/playwright-mcp-test/node_modules/playwright/lib/runner/rebase.js +189 -0
  254. package/playwright-mcp-test/node_modules/playwright/lib/runner/reporters.js +139 -0
  255. package/playwright-mcp-test/node_modules/playwright/lib/runner/sigIntWatcher.js +96 -0
  256. package/playwright-mcp-test/node_modules/playwright/lib/runner/taskRunner.js +127 -0
  257. package/playwright-mcp-test/node_modules/playwright/lib/runner/tasks.js +410 -0
  258. package/playwright-mcp-test/node_modules/playwright/lib/runner/testGroups.js +117 -0
  259. package/playwright-mcp-test/node_modules/playwright/lib/runner/testRunner.js +390 -0
  260. package/playwright-mcp-test/node_modules/playwright/lib/runner/testServer.js +264 -0
  261. package/playwright-mcp-test/node_modules/playwright/lib/runner/uiModeReporter.js +30 -0
  262. package/playwright-mcp-test/node_modules/playwright/lib/runner/vcs.js +72 -0
  263. package/playwright-mcp-test/node_modules/playwright/lib/runner/watchMode.js +395 -0
  264. package/playwright-mcp-test/node_modules/playwright/lib/runner/workerHost.js +95 -0
  265. package/playwright-mcp-test/node_modules/playwright/lib/third_party/pirates.js +62 -0
  266. package/playwright-mcp-test/node_modules/playwright/lib/third_party/tsconfig-loader.js +103 -0
  267. package/playwright-mcp-test/node_modules/playwright/lib/transform/babelBundle.js +43 -0
  268. package/playwright-mcp-test/node_modules/playwright/lib/transform/babelBundleImpl.js +461 -0
  269. package/playwright-mcp-test/node_modules/playwright/lib/transform/compilationCache.js +272 -0
  270. package/playwright-mcp-test/node_modules/playwright/lib/transform/esmLoader.js +104 -0
  271. package/playwright-mcp-test/node_modules/playwright/lib/transform/portTransport.js +67 -0
  272. package/playwright-mcp-test/node_modules/playwright/lib/transform/transform.js +293 -0
  273. package/playwright-mcp-test/node_modules/playwright/lib/util.js +403 -0
  274. package/playwright-mcp-test/node_modules/playwright/lib/utilsBundle.js +43 -0
  275. package/playwright-mcp-test/node_modules/playwright/lib/utilsBundleImpl.js +100 -0
  276. package/playwright-mcp-test/node_modules/playwright/lib/worker/fixtureRunner.js +258 -0
  277. package/playwright-mcp-test/node_modules/playwright/lib/worker/testInfo.js +514 -0
  278. package/playwright-mcp-test/node_modules/playwright/lib/worker/testTracing.js +344 -0
  279. package/playwright-mcp-test/node_modules/playwright/lib/worker/timeoutManager.js +174 -0
  280. package/playwright-mcp-test/node_modules/playwright/lib/worker/util.js +31 -0
  281. package/playwright-mcp-test/node_modules/playwright/lib/worker/workerMain.js +520 -0
  282. package/playwright-mcp-test/node_modules/playwright/package.json +72 -0
  283. package/playwright-mcp-test/node_modules/playwright/test.d.ts +18 -0
  284. package/playwright-mcp-test/node_modules/playwright/test.js +24 -0
  285. package/playwright-mcp-test/node_modules/playwright/test.mjs +33 -0
  286. package/playwright-mcp-test/node_modules/playwright/types/test.d.ts +10185 -0
  287. package/playwright-mcp-test/node_modules/playwright/types/testReporter.d.ts +821 -0
  288. package/playwright-mcp-test/node_modules/playwright-core/LICENSE +202 -0
  289. package/playwright-mcp-test/node_modules/playwright-core/NOTICE +5 -0
  290. package/playwright-mcp-test/node_modules/playwright-core/README.md +3 -0
  291. package/playwright-mcp-test/node_modules/playwright-core/ThirdPartyNotices.txt +1161 -0
  292. package/playwright-mcp-test/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
  293. package/playwright-mcp-test/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +35 -0
  294. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
  295. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
  296. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
  297. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
  298. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
  299. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
  300. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
  301. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
  302. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
  303. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
  304. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
  305. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
  306. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
  307. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
  308. package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
  309. package/playwright-mcp-test/node_modules/playwright-core/browsers.json +80 -0
  310. package/playwright-mcp-test/node_modules/playwright-core/cli.js +18 -0
  311. package/playwright-mcp-test/node_modules/playwright-core/index.d.ts +17 -0
  312. package/playwright-mcp-test/node_modules/playwright-core/index.js +32 -0
  313. package/playwright-mcp-test/node_modules/playwright-core/index.mjs +28 -0
  314. package/playwright-mcp-test/node_modules/playwright-core/lib/androidServerImpl.js +65 -0
  315. package/playwright-mcp-test/node_modules/playwright-core/lib/browserServerImpl.js +120 -0
  316. package/playwright-mcp-test/node_modules/playwright-core/lib/cli/driver.js +97 -0
  317. package/playwright-mcp-test/node_modules/playwright-core/lib/cli/program.js +634 -0
  318. package/playwright-mcp-test/node_modules/playwright-core/lib/cli/programWithTestStub.js +74 -0
  319. package/playwright-mcp-test/node_modules/playwright-core/lib/client/accessibility.js +49 -0
  320. package/playwright-mcp-test/node_modules/playwright-core/lib/client/android.js +361 -0
  321. package/playwright-mcp-test/node_modules/playwright-core/lib/client/api.js +137 -0
  322. package/playwright-mcp-test/node_modules/playwright-core/lib/client/artifact.js +79 -0
  323. package/playwright-mcp-test/node_modules/playwright-core/lib/client/browser.js +163 -0
  324. package/playwright-mcp-test/node_modules/playwright-core/lib/client/browserContext.js +529 -0
  325. package/playwright-mcp-test/node_modules/playwright-core/lib/client/browserType.js +184 -0
  326. package/playwright-mcp-test/node_modules/playwright-core/lib/client/cdpSession.js +51 -0
  327. package/playwright-mcp-test/node_modules/playwright-core/lib/client/channelOwner.js +194 -0
  328. package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientHelper.js +64 -0
  329. package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientInstrumentation.js +55 -0
  330. package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientStackTrace.js +69 -0
  331. package/playwright-mcp-test/node_modules/playwright-core/lib/client/clock.js +68 -0
  332. package/playwright-mcp-test/node_modules/playwright-core/lib/client/connection.js +314 -0
  333. package/playwright-mcp-test/node_modules/playwright-core/lib/client/consoleMessage.js +54 -0
  334. package/playwright-mcp-test/node_modules/playwright-core/lib/client/coverage.js +44 -0
  335. package/playwright-mcp-test/node_modules/playwright-core/lib/client/dialog.js +56 -0
  336. package/playwright-mcp-test/node_modules/playwright-core/lib/client/download.js +62 -0
  337. package/playwright-mcp-test/node_modules/playwright-core/lib/client/electron.js +138 -0
  338. package/playwright-mcp-test/node_modules/playwright-core/lib/client/elementHandle.js +281 -0
  339. package/playwright-mcp-test/node_modules/playwright-core/lib/client/errors.js +77 -0
  340. package/playwright-mcp-test/node_modules/playwright-core/lib/client/eventEmitter.js +314 -0
  341. package/playwright-mcp-test/node_modules/playwright-core/lib/client/events.js +99 -0
  342. package/playwright-mcp-test/node_modules/playwright-core/lib/client/fetch.js +369 -0
  343. package/playwright-mcp-test/node_modules/playwright-core/lib/client/fileChooser.js +46 -0
  344. package/playwright-mcp-test/node_modules/playwright-core/lib/client/fileUtils.js +34 -0
  345. package/playwright-mcp-test/node_modules/playwright-core/lib/client/frame.js +408 -0
  346. package/playwright-mcp-test/node_modules/playwright-core/lib/client/harRouter.js +87 -0
  347. package/playwright-mcp-test/node_modules/playwright-core/lib/client/input.js +84 -0
  348. package/playwright-mcp-test/node_modules/playwright-core/lib/client/jsHandle.js +109 -0
  349. package/playwright-mcp-test/node_modules/playwright-core/lib/client/jsonPipe.js +39 -0
  350. package/playwright-mcp-test/node_modules/playwright-core/lib/client/localUtils.js +60 -0
  351. package/playwright-mcp-test/node_modules/playwright-core/lib/client/locator.js +369 -0
  352. package/playwright-mcp-test/node_modules/playwright-core/lib/client/network.js +747 -0
  353. package/playwright-mcp-test/node_modules/playwright-core/lib/client/page.js +721 -0
  354. package/playwright-mcp-test/node_modules/playwright-core/lib/client/platform.js +74 -0
  355. package/playwright-mcp-test/node_modules/playwright-core/lib/client/playwright.js +71 -0
  356. package/playwright-mcp-test/node_modules/playwright-core/lib/client/selectors.js +55 -0
  357. package/playwright-mcp-test/node_modules/playwright-core/lib/client/stream.js +39 -0
  358. package/playwright-mcp-test/node_modules/playwright-core/lib/client/timeoutSettings.js +79 -0
  359. package/playwright-mcp-test/node_modules/playwright-core/lib/client/tracing.js +117 -0
  360. package/playwright-mcp-test/node_modules/playwright-core/lib/client/types.js +28 -0
  361. package/playwright-mcp-test/node_modules/playwright-core/lib/client/video.js +59 -0
  362. package/playwright-mcp-test/node_modules/playwright-core/lib/client/waiter.js +142 -0
  363. package/playwright-mcp-test/node_modules/playwright-core/lib/client/webError.js +39 -0
  364. package/playwright-mcp-test/node_modules/playwright-core/lib/client/webSocket.js +93 -0
  365. package/playwright-mcp-test/node_modules/playwright-core/lib/client/worker.js +63 -0
  366. package/playwright-mcp-test/node_modules/playwright-core/lib/client/writableStream.js +39 -0
  367. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +28 -0
  368. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/clockSource.js +28 -0
  369. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/injectedScriptSource.js +28 -0
  370. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +28 -0
  371. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/storageScriptSource.js +28 -0
  372. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/utilityScriptSource.js +28 -0
  373. package/playwright-mcp-test/node_modules/playwright-core/lib/generated/webSocketMockSource.js +336 -0
  374. package/playwright-mcp-test/node_modules/playwright-core/lib/inProcessFactory.js +60 -0
  375. package/playwright-mcp-test/node_modules/playwright-core/lib/inprocess.js +3 -0
  376. package/playwright-mcp-test/node_modules/playwright-core/lib/outofprocess.js +76 -0
  377. package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/serializers.js +192 -0
  378. package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/validator.js +2912 -0
  379. package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +193 -0
  380. package/playwright-mcp-test/node_modules/playwright-core/lib/remote/playwrightConnection.js +129 -0
  381. package/playwright-mcp-test/node_modules/playwright-core/lib/remote/playwrightServer.js +335 -0
  382. package/playwright-mcp-test/node_modules/playwright-core/lib/server/accessibility.js +69 -0
  383. package/playwright-mcp-test/node_modules/playwright-core/lib/server/android/android.js +465 -0
  384. package/playwright-mcp-test/node_modules/playwright-core/lib/server/android/backendAdb.js +177 -0
  385. package/playwright-mcp-test/node_modules/playwright-core/lib/server/artifact.js +127 -0
  386. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +490 -0
  387. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +153 -0
  388. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +212 -0
  389. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +221 -0
  390. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +130 -0
  391. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiInput.js +146 -0
  392. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +383 -0
  393. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +102 -0
  394. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiPage.js +554 -0
  395. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +106 -0
  396. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
  397. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiDeserializer.js +98 -0
  398. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
  399. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +24 -0
  400. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +179 -0
  401. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
  402. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +148 -0
  403. package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +259 -0
  404. package/playwright-mcp-test/node_modules/playwright-core/lib/server/browser.js +149 -0
  405. package/playwright-mcp-test/node_modules/playwright-core/lib/server/browserContext.js +695 -0
  406. package/playwright-mcp-test/node_modules/playwright-core/lib/server/browserType.js +328 -0
  407. package/playwright-mcp-test/node_modules/playwright-core/lib/server/callLog.js +82 -0
  408. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
  409. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/chromium.js +402 -0
  410. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +95 -0
  411. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crAccessibility.js +263 -0
  412. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crBrowser.js +502 -0
  413. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crConnection.js +202 -0
  414. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crCoverage.js +235 -0
  415. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crDevTools.js +113 -0
  416. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +131 -0
  417. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +146 -0
  418. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crInput.js +187 -0
  419. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +666 -0
  420. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crPage.js +1069 -0
  421. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crPdf.js +121 -0
  422. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +145 -0
  423. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +123 -0
  424. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +162 -0
  425. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/protocol.d.js +16 -0
  426. package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/videoRecorder.js +113 -0
  427. package/playwright-mcp-test/node_modules/playwright-core/lib/server/clock.js +149 -0
  428. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/csharp.js +327 -0
  429. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/java.js +274 -0
  430. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/javascript.js +270 -0
  431. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/jsonl.js +52 -0
  432. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/language.js +132 -0
  433. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/languages.js +68 -0
  434. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/python.js +279 -0
  435. package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/types.js +16 -0
  436. package/playwright-mcp-test/node_modules/playwright-core/lib/server/console.js +53 -0
  437. package/playwright-mcp-test/node_modules/playwright-core/lib/server/cookieStore.js +206 -0
  438. package/playwright-mcp-test/node_modules/playwright-core/lib/server/debugController.js +191 -0
  439. package/playwright-mcp-test/node_modules/playwright-core/lib/server/debugger.js +119 -0
  440. package/playwright-mcp-test/node_modules/playwright-core/lib/server/deviceDescriptors.js +39 -0
  441. package/playwright-mcp-test/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +1779 -0
  442. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dialog.js +116 -0
  443. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +325 -0
  444. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +118 -0
  445. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +364 -0
  446. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +118 -0
  447. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +64 -0
  448. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
  449. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
  450. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +47 -0
  451. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +371 -0
  452. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +89 -0
  453. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
  454. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +227 -0
  455. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
  456. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
  457. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
  458. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +213 -0
  459. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +401 -0
  460. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +108 -0
  461. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +67 -0
  462. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +68 -0
  463. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +165 -0
  464. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
  465. package/playwright-mcp-test/node_modules/playwright-core/lib/server/dom.js +806 -0
  466. package/playwright-mcp-test/node_modules/playwright-core/lib/server/download.js +70 -0
  467. package/playwright-mcp-test/node_modules/playwright-core/lib/server/electron/electron.js +270 -0
  468. package/playwright-mcp-test/node_modules/playwright-core/lib/server/electron/loader.js +29 -0
  469. package/playwright-mcp-test/node_modules/playwright-core/lib/server/errors.js +69 -0
  470. package/playwright-mcp-test/node_modules/playwright-core/lib/server/fetch.js +621 -0
  471. package/playwright-mcp-test/node_modules/playwright-core/lib/server/fileChooser.js +43 -0
  472. package/playwright-mcp-test/node_modules/playwright-core/lib/server/fileUploadUtils.js +84 -0
  473. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffAccessibility.js +238 -0
  474. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +428 -0
  475. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffConnection.js +147 -0
  476. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +150 -0
  477. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffInput.js +159 -0
  478. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +256 -0
  479. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffPage.js +503 -0
  480. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/firefox.js +116 -0
  481. package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/protocol.d.js +16 -0
  482. package/playwright-mcp-test/node_modules/playwright-core/lib/server/formData.js +147 -0
  483. package/playwright-mcp-test/node_modules/playwright-core/lib/server/frameSelectors.js +154 -0
  484. package/playwright-mcp-test/node_modules/playwright-core/lib/server/frames.js +1455 -0
  485. package/playwright-mcp-test/node_modules/playwright-core/lib/server/har/harRecorder.js +147 -0
  486. package/playwright-mcp-test/node_modules/playwright-core/lib/server/har/harTracer.js +607 -0
  487. package/playwright-mcp-test/node_modules/playwright-core/lib/server/harBackend.js +157 -0
  488. package/playwright-mcp-test/node_modules/playwright-core/lib/server/helper.js +96 -0
  489. package/playwright-mcp-test/node_modules/playwright-core/lib/server/index.js +58 -0
  490. package/playwright-mcp-test/node_modules/playwright-core/lib/server/input.js +273 -0
  491. package/playwright-mcp-test/node_modules/playwright-core/lib/server/instrumentation.js +69 -0
  492. package/playwright-mcp-test/node_modules/playwright-core/lib/server/javascript.js +291 -0
  493. package/playwright-mcp-test/node_modules/playwright-core/lib/server/launchApp.js +128 -0
  494. package/playwright-mcp-test/node_modules/playwright-core/lib/server/localUtils.js +214 -0
  495. package/playwright-mcp-test/node_modules/playwright-core/lib/server/macEditingCommands.js +143 -0
  496. package/playwright-mcp-test/node_modules/playwright-core/lib/server/network.js +629 -0
  497. package/playwright-mcp-test/node_modules/playwright-core/lib/server/page.js +867 -0
  498. package/playwright-mcp-test/node_modules/playwright-core/lib/server/pipeTransport.js +89 -0
  499. package/playwright-mcp-test/node_modules/playwright-core/lib/server/playwright.js +69 -0
  500. package/playwright-mcp-test/node_modules/playwright-core/lib/server/progress.js +112 -0
  501. package/playwright-mcp-test/node_modules/playwright-core/lib/server/protocolError.js +52 -0
  502. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/chat.js +161 -0
  503. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderApp.js +387 -0
  504. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +138 -0
  505. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +83 -0
  506. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +157 -0
  507. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/throttledFile.js +57 -0
  508. package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder.js +499 -0
  509. package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/browserFetcher.js +175 -0
  510. package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/dependencies.js +371 -0
  511. package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/index.js +1361 -0
  512. package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/nativeDeps.js +1280 -0
  513. package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +124 -0
  514. package/playwright-mcp-test/node_modules/playwright-core/lib/server/screenshotter.js +333 -0
  515. package/playwright-mcp-test/node_modules/playwright-core/lib/server/selectors.js +112 -0
  516. package/playwright-mcp-test/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +383 -0
  517. package/playwright-mcp-test/node_modules/playwright-core/lib/server/socksInterceptor.js +95 -0
  518. package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +147 -0
  519. package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +541 -0
  520. package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +602 -0
  521. package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/test/inMemorySnapshotter.js +87 -0
  522. package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +230 -0
  523. package/playwright-mcp-test/node_modules/playwright-core/lib/server/transport.js +181 -0
  524. package/playwright-mcp-test/node_modules/playwright-core/lib/server/types.js +28 -0
  525. package/playwright-mcp-test/node_modules/playwright-core/lib/server/usKeyboardLayout.js +145 -0
  526. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/ascii.js +44 -0
  527. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/comparators.js +139 -0
  528. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/crypto.js +216 -0
  529. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/debug.js +42 -0
  530. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/debugLogger.js +122 -0
  531. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/env.js +73 -0
  532. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/eventsHelper.js +39 -0
  533. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/expectUtils.js +38 -0
  534. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/fileUtils.js +191 -0
  535. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +207 -0
  536. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/hostPlatform.js +123 -0
  537. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/httpServer.js +218 -0
  538. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/imageUtils.js +146 -0
  539. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +89 -0
  540. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +109 -0
  541. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +78 -0
  542. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +102 -0
  543. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/linuxUtils.js +71 -0
  544. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/network.js +233 -0
  545. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/nodePlatform.js +148 -0
  546. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/pipeTransport.js +84 -0
  547. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/processLauncher.js +241 -0
  548. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/profiler.js +65 -0
  549. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/socksProxy.js +511 -0
  550. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/spawnAsync.js +41 -0
  551. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/task.js +51 -0
  552. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/userAgent.js +98 -0
  553. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/wsServer.js +121 -0
  554. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/zipFile.js +74 -0
  555. package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/zones.js +57 -0
  556. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/protocol.d.js +16 -0
  557. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/webkit.js +119 -0
  558. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkAccessibility.js +237 -0
  559. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +339 -0
  560. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkConnection.js +149 -0
  561. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +154 -0
  562. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkInput.js +181 -0
  563. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +169 -0
  564. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkPage.js +1134 -0
  565. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +83 -0
  566. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +104 -0
  567. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wsl/webkit-wsl-transport-client.js +74 -0
  568. package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wsl/webkit-wsl-transport-server.js +113 -0
  569. package/playwright-mcp-test/node_modules/playwright-core/lib/third_party/pixelmatch.js +255 -0
  570. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +392 -0
  571. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/assert.js +31 -0
  572. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/colors.js +72 -0
  573. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +245 -0
  574. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +1051 -0
  575. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/headers.js +53 -0
  576. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +689 -0
  577. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +176 -0
  578. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +81 -0
  579. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +114 -0
  580. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +459 -0
  581. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +80 -0
  582. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +81 -0
  583. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +321 -0
  584. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +43 -0
  585. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +386 -0
  586. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +54 -0
  587. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +158 -0
  588. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +155 -0
  589. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/time.js +49 -0
  590. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +66 -0
  591. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +58 -0
  592. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/types.js +16 -0
  593. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +179 -0
  594. package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +251 -0
  595. package/playwright-mcp-test/node_modules/playwright-core/lib/utils.js +109 -0
  596. package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundle.js +112 -0
  597. package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundleImpl/index.js +218 -0
  598. package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +1066 -0
  599. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/htmlReport/index.html +84 -0
  600. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +1 -0
  601. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DX585GyR.js +25 -0
  602. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  603. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/index-DjadjNw5.js +193 -0
  604. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/index-Ri0uHF7I.css +1 -0
  605. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
  606. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
  607. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-Cw-6jrKz.js +25 -0
  608. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BZIhX7gh.js +266 -0
  609. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
  610. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +1 -0
  611. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  612. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BEjzWGz-.css +1 -0
  613. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.Dk_obRs3.js +2 -0
  614. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.I8N9v4jT.css +1 -0
  615. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.html +43 -0
  616. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
  617. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
  618. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +21 -0
  619. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +3 -0
  620. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Bai-qGIw.js +5 -0
  621. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
  622. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +17 -0
  623. package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
  624. package/playwright-mcp-test/node_modules/playwright-core/lib/zipBundle.js +34 -0
  625. package/playwright-mcp-test/node_modules/playwright-core/lib/zipBundleImpl.js +5 -0
  626. package/playwright-mcp-test/node_modules/playwright-core/package.json +42 -0
  627. package/playwright-mcp-test/node_modules/playwright-core/types/protocol.d.ts +23130 -0
  628. package/playwright-mcp-test/node_modules/playwright-core/types/structs.d.ts +45 -0
  629. package/playwright-mcp-test/node_modules/playwright-core/types/types.d.ts +22872 -0
  630. package/playwright-mcp-test/package-lock.json +76 -0
  631. package/playwright.config.js +0 -50
  632. package/uat/test-results/.last-run.json +4 -0
  633. package/zohodesk-testinglibrary-0.0.10-n20-experimental.tgz +0 -0
  634. package/zohodesk-testinglibrary-3.2.13.tgz +0 -0
  635. package/Changelog.md +0 -54
  636. package/build/bdd-framework/cli/commands/env.js +0 -43
  637. package/build/bdd-framework/cli/commands/export.js +0 -48
  638. package/build/bdd-framework/cli/commands/test.js +0 -59
  639. package/build/bdd-framework/cli/index.js +0 -11
  640. package/build/bdd-framework/cli/options.js +0 -20
  641. package/build/bdd-framework/cli/worker.js +0 -13
  642. package/build/bdd-framework/config/dir.js +0 -27
  643. package/build/bdd-framework/config/env.js +0 -49
  644. package/build/bdd-framework/config/index.js +0 -91
  645. package/build/bdd-framework/cucumber/buildStepDefinition.js +0 -43
  646. package/build/bdd-framework/cucumber/gherkin.d.js +0 -5
  647. package/build/bdd-framework/cucumber/gherkin.d.ts +0 -45
  648. package/build/bdd-framework/cucumber/loadConfig.js +0 -17
  649. package/build/bdd-framework/cucumber/loadFeatures.js +0 -39
  650. package/build/bdd-framework/cucumber/loadSnippetBuilder.js +0 -20
  651. package/build/bdd-framework/cucumber/loadSources.js +0 -57
  652. package/build/bdd-framework/cucumber/loadSteps.js +0 -35
  653. package/build/bdd-framework/decorators.js +0 -22
  654. package/build/bdd-framework/gen/formatter.js +0 -88
  655. package/build/bdd-framework/gen/i18n.js +0 -35
  656. package/build/bdd-framework/gen/index.js +0 -160
  657. package/build/bdd-framework/gen/poms.js +0 -46
  658. package/build/bdd-framework/gen/testFile.js +0 -356
  659. package/build/bdd-framework/gen/testNode.js +0 -48
  660. package/build/bdd-framework/gen/testPoms.js +0 -123
  661. package/build/bdd-framework/index.js +0 -45
  662. package/build/bdd-framework/playwright/fixtureParameterNames.js +0 -77
  663. package/build/bdd-framework/playwright/getLocationInFile.js +0 -46
  664. package/build/bdd-framework/playwright/loadConfig.js +0 -42
  665. package/build/bdd-framework/playwright/testTypeImpl.js +0 -41
  666. package/build/bdd-framework/playwright/transform.js +0 -80
  667. package/build/bdd-framework/playwright/types.js +0 -5
  668. package/build/bdd-framework/playwright/utils.js +0 -34
  669. package/build/bdd-framework/run/bddFixtures.js +0 -108
  670. package/build/bdd-framework/run/bddWorld.js +0 -87
  671. package/build/bdd-framework/snippets/index.js +0 -131
  672. package/build/bdd-framework/snippets/snippetSyntax.js +0 -41
  673. package/build/bdd-framework/snippets/snippetSyntaxDecorators.js +0 -26
  674. package/build/bdd-framework/snippets/snippetSyntaxTs.js +0 -18
  675. package/build/bdd-framework/stepDefinitions/createBdd.js +0 -49
  676. package/build/bdd-framework/stepDefinitions/createDecorators.js +0 -109
  677. package/build/bdd-framework/stepDefinitions/decorators/poms.js +0 -50
  678. package/build/bdd-framework/stepDefinitions/decorators/steps.js +0 -94
  679. package/build/bdd-framework/stepDefinitions/defineStep.js +0 -61
  680. package/build/bdd-framework/stepDefinitions/stepConfig.js +0 -24
  681. package/build/bdd-framework/utils/index.js +0 -50
  682. package/build/bdd-framework/utils/jsStringWrap.js +0 -44
  683. package/build/bdd-framework/utils/logger.js +0 -29
  684. package/build/setup-folder-structure/samples/authUsers-sample.json +0 -9
  685. package/build/setup-folder-structure/samples/env-config-sample.json +0 -21
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var bidiSerializer_exports = {};
20
+ __export(bidiSerializer_exports, {
21
+ BidiSerializer: () => BidiSerializer,
22
+ isDate: () => isDate,
23
+ isPlainObject: () => isPlainObject,
24
+ isRegExp: () => isRegExp
25
+ });
26
+ module.exports = __toCommonJS(bidiSerializer_exports);
27
+ /**
28
+ * @license
29
+ * Copyright 2024 Google Inc.
30
+ * Modifications copyright (c) Microsoft Corporation.
31
+ * SPDX-License-Identifier: Apache-2.0
32
+ */
33
+ class UnserializableError extends Error {
34
+ }
35
+ class BidiSerializer {
36
+ static serialize(arg) {
37
+ switch (typeof arg) {
38
+ case "symbol":
39
+ case "function":
40
+ throw new UnserializableError(`Unable to serializable ${typeof arg}`);
41
+ case "object":
42
+ return BidiSerializer._serializeObject(arg);
43
+ case "undefined":
44
+ return {
45
+ type: "undefined"
46
+ };
47
+ case "number":
48
+ return BidiSerializer._serializeNumber(arg);
49
+ case "bigint":
50
+ return {
51
+ type: "bigint",
52
+ value: arg.toString()
53
+ };
54
+ case "string":
55
+ return {
56
+ type: "string",
57
+ value: arg
58
+ };
59
+ case "boolean":
60
+ return {
61
+ type: "boolean",
62
+ value: arg
63
+ };
64
+ }
65
+ }
66
+ static _serializeNumber(arg) {
67
+ let value;
68
+ if (Object.is(arg, -0)) {
69
+ value = "-0";
70
+ } else if (Object.is(arg, Infinity)) {
71
+ value = "Infinity";
72
+ } else if (Object.is(arg, -Infinity)) {
73
+ value = "-Infinity";
74
+ } else if (Object.is(arg, NaN)) {
75
+ value = "NaN";
76
+ } else {
77
+ value = arg;
78
+ }
79
+ return {
80
+ type: "number",
81
+ value
82
+ };
83
+ }
84
+ static _serializeObject(arg) {
85
+ if (arg === null) {
86
+ return {
87
+ type: "null"
88
+ };
89
+ } else if (Array.isArray(arg)) {
90
+ const parsedArray = arg.map((subArg) => {
91
+ return BidiSerializer.serialize(subArg);
92
+ });
93
+ return {
94
+ type: "array",
95
+ value: parsedArray
96
+ };
97
+ } else if (isPlainObject(arg)) {
98
+ try {
99
+ JSON.stringify(arg);
100
+ } catch (error) {
101
+ if (error instanceof TypeError && error.message.startsWith("Converting circular structure to JSON")) {
102
+ error.message += " Recursive objects are not allowed.";
103
+ }
104
+ throw error;
105
+ }
106
+ const parsedObject = [];
107
+ for (const key in arg) {
108
+ parsedObject.push([BidiSerializer.serialize(key), BidiSerializer.serialize(arg[key])]);
109
+ }
110
+ return {
111
+ type: "object",
112
+ value: parsedObject
113
+ };
114
+ } else if (isRegExp(arg)) {
115
+ return {
116
+ type: "regexp",
117
+ value: {
118
+ pattern: arg.source,
119
+ flags: arg.flags
120
+ }
121
+ };
122
+ } else if (isDate(arg)) {
123
+ return {
124
+ type: "date",
125
+ value: arg.toISOString()
126
+ };
127
+ }
128
+ throw new UnserializableError(
129
+ "Custom object serialization not possible. Use plain objects instead."
130
+ );
131
+ }
132
+ }
133
+ const isPlainObject = (obj) => {
134
+ return typeof obj === "object" && obj?.constructor === Object;
135
+ };
136
+ const isRegExp = (obj) => {
137
+ return typeof obj === "object" && obj?.constructor === RegExp;
138
+ };
139
+ const isDate = (obj) => {
140
+ return typeof obj === "object" && obj?.constructor === Date;
141
+ };
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ BidiSerializer,
145
+ isDate,
146
+ isPlainObject,
147
+ isRegExp
148
+ });
@@ -0,0 +1,259 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var firefoxPrefs_exports = {};
30
+ __export(firefoxPrefs_exports, {
31
+ createProfile: () => createProfile
32
+ });
33
+ module.exports = __toCommonJS(firefoxPrefs_exports);
34
+ var import_fs = __toESM(require("fs"));
35
+ var import_path = __toESM(require("path"));
36
+ /**
37
+ * @license
38
+ * Copyright 2023 Google Inc.
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ async function createProfile(options) {
42
+ if (!import_fs.default.existsSync(options.path)) {
43
+ await import_fs.default.promises.mkdir(options.path, {
44
+ recursive: true
45
+ });
46
+ }
47
+ await writePreferences({
48
+ preferences: {
49
+ ...defaultProfilePreferences(options.preferences),
50
+ ...options.preferences
51
+ },
52
+ path: options.path
53
+ });
54
+ }
55
+ function defaultProfilePreferences(extraPrefs) {
56
+ const server = "dummy.test";
57
+ const defaultPrefs = {
58
+ // Make sure Shield doesn't hit the network.
59
+ "app.normandy.api_url": "",
60
+ // Disable Firefox old build background check
61
+ "app.update.checkInstallTime": false,
62
+ // Disable automatically upgrading Firefox
63
+ "app.update.disabledForTesting": true,
64
+ // Increase the APZ content response timeout to 1 minute
65
+ "apz.content_response_timeout": 6e4,
66
+ // Prevent various error message on the console
67
+ // jest-puppeteer asserts that no error message is emitted by the console
68
+ "browser.contentblocking.features.standard": "-tp,tpPrivate,cookieBehavior0,-cm,-fp",
69
+ // Enable the dump function: which sends messages to the system
70
+ // console
71
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1543115
72
+ "browser.dom.window.dump.enabled": true,
73
+ // Make sure newtab weather doesn't hit the network to retrieve weather data.
74
+ "browser.newtabpage.activity-stream.discoverystream.region-weather-config": "",
75
+ // Make sure newtab wallpapers don't hit the network to retrieve wallpaper data.
76
+ "browser.newtabpage.activity-stream.newtabWallpapers.enabled": false,
77
+ "browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled": false,
78
+ // Make sure Topsites doesn't hit the network to retrieve sponsored tiles.
79
+ "browser.newtabpage.activity-stream.showSponsoredTopSites": false,
80
+ // Disable topstories
81
+ "browser.newtabpage.activity-stream.feeds.system.topstories": false,
82
+ // Always display a blank page
83
+ "browser.newtabpage.enabled": false,
84
+ // Background thumbnails in particular cause grief: and disabling
85
+ // thumbnails in general cannot hurt
86
+ "browser.pagethumbnails.capturing_disabled": true,
87
+ // Disable safebrowsing components.
88
+ "browser.safebrowsing.blockedURIs.enabled": false,
89
+ "browser.safebrowsing.downloads.enabled": false,
90
+ "browser.safebrowsing.malware.enabled": false,
91
+ "browser.safebrowsing.phishing.enabled": false,
92
+ // Disable updates to search engines.
93
+ "browser.search.update": false,
94
+ // Do not restore the last open set of tabs if the browser has crashed
95
+ "browser.sessionstore.resume_from_crash": false,
96
+ // Skip check for default browser on startup
97
+ "browser.shell.checkDefaultBrowser": false,
98
+ // Disable newtabpage
99
+ "browser.startup.homepage": "about:blank",
100
+ // Do not redirect user when a milstone upgrade of Firefox is detected
101
+ "browser.startup.homepage_override.mstone": "ignore",
102
+ // Start with a blank page about:blank
103
+ "browser.startup.page": 0,
104
+ // Do not allow background tabs to be zombified on Android: otherwise for
105
+ // tests that open additional tabs: the test harness tab itself might get
106
+ // unloaded
107
+ "browser.tabs.disableBackgroundZombification": false,
108
+ // Do not warn when closing all other open tabs
109
+ "browser.tabs.warnOnCloseOtherTabs": false,
110
+ // Do not warn when multiple tabs will be opened
111
+ "browser.tabs.warnOnOpen": false,
112
+ // Do not automatically offer translations, as tests do not expect this.
113
+ "browser.translations.automaticallyPopup": false,
114
+ // Disable the UI tour.
115
+ "browser.uitour.enabled": false,
116
+ // Turn off search suggestions in the location bar so as not to trigger
117
+ // network connections.
118
+ "browser.urlbar.suggest.searches": false,
119
+ // Disable first run splash page on Windows 10
120
+ "browser.usedOnWindows10.introURL": "",
121
+ // Do not warn on quitting Firefox
122
+ "browser.warnOnQuit": false,
123
+ // Defensively disable data reporting systems
124
+ "datareporting.healthreport.documentServerURI": `http://${server}/dummy/healthreport/`,
125
+ "datareporting.healthreport.logging.consoleEnabled": false,
126
+ "datareporting.healthreport.service.enabled": false,
127
+ "datareporting.healthreport.service.firstRun": false,
128
+ "datareporting.healthreport.uploadEnabled": false,
129
+ // Do not show datareporting policy notifications which can interfere with tests
130
+ "datareporting.policy.dataSubmissionEnabled": false,
131
+ "datareporting.policy.dataSubmissionPolicyBypassNotification": true,
132
+ // DevTools JSONViewer sometimes fails to load dependencies with its require.js.
133
+ // This doesn't affect Puppeteer but spams console (Bug 1424372)
134
+ "devtools.jsonview.enabled": false,
135
+ // Disable popup-blocker
136
+ "dom.disable_open_during_load": false,
137
+ // Enable the support for File object creation in the content process
138
+ // Required for |Page.setFileInputFiles| protocol method.
139
+ "dom.file.createInChild": true,
140
+ // Disable the ProcessHangMonitor
141
+ "dom.ipc.reportProcessHangs": false,
142
+ // Disable slow script dialogues
143
+ "dom.max_chrome_script_run_time": 0,
144
+ "dom.max_script_run_time": 0,
145
+ // Disable background timer throttling to allow tests to run in parallel
146
+ // without a decrease in performance.
147
+ "dom.min_background_timeout_value": 0,
148
+ "dom.min_background_timeout_value_without_budget_throttling": 0,
149
+ "dom.timeout.enable_budget_timer_throttling": false,
150
+ // Disable HTTPS-First upgrades
151
+ "dom.security.https_first": false,
152
+ // Only load extensions from the application and user profile
153
+ // AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
154
+ "extensions.autoDisableScopes": 0,
155
+ "extensions.enabledScopes": 5,
156
+ // Disable metadata caching for installed add-ons by default
157
+ "extensions.getAddons.cache.enabled": false,
158
+ // Disable installing any distribution extensions or add-ons.
159
+ "extensions.installDistroAddons": false,
160
+ // Disabled screenshots extension
161
+ "extensions.screenshots.disabled": true,
162
+ // Turn off extension updates so they do not bother tests
163
+ "extensions.update.enabled": false,
164
+ // Turn off extension updates so they do not bother tests
165
+ "extensions.update.notifyUser": false,
166
+ // Make sure opening about:addons will not hit the network
167
+ "extensions.webservice.discoverURL": `http://${server}/dummy/discoveryURL`,
168
+ // Allow the application to have focus even it runs in the background
169
+ "focusmanager.testmode": true,
170
+ // Disable useragent updates
171
+ "general.useragent.updates.enabled": false,
172
+ // Always use network provider for geolocation tests so we bypass the
173
+ // macOS dialog raised by the corelocation provider
174
+ "geo.provider.testing": true,
175
+ // Do not scan Wifi
176
+ "geo.wifi.scan": false,
177
+ // No hang monitor
178
+ "hangmonitor.timeout": 0,
179
+ // Show chrome errors and warnings in the error console
180
+ "javascript.options.showInConsole": true,
181
+ // Do not throttle rendering (requestAnimationFrame) in background tabs
182
+ "layout.testing.top-level-always-active": true,
183
+ // Disable download and usage of OpenH264: and Widevine plugins
184
+ "media.gmp-manager.updateEnabled": false,
185
+ // Disable the GFX sanity window
186
+ "media.sanity-test.disabled": true,
187
+ // Disable connectivity service pings
188
+ "network.connectivity-service.enabled": false,
189
+ // Disable experimental feature that is only available in Nightly
190
+ "network.cookie.sameSite.laxByDefault": false,
191
+ // Do not prompt for temporary redirects
192
+ "network.http.prompt-temp-redirect": false,
193
+ // Disable speculative connections so they are not reported as leaking
194
+ // when they are hanging around
195
+ "network.http.speculative-parallel-limit": 0,
196
+ // Do not automatically switch between offline and online
197
+ "network.manage-offline-status": false,
198
+ // Make sure SNTP requests do not hit the network
199
+ "network.sntp.pools": server,
200
+ // Disable Flash.
201
+ "plugin.state.flash": 0,
202
+ "privacy.trackingprotection.enabled": false,
203
+ // Can be removed once Firefox 89 is no longer supported
204
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1710839
205
+ "remote.enabled": true,
206
+ // Don't do network connections for mitm priming
207
+ "security.certerrors.mitm.priming.enabled": false,
208
+ // Local documents have access to all other local documents,
209
+ // including directory listings
210
+ "security.fileuri.strict_origin_policy": false,
211
+ // Do not wait for the notification button security delay
212
+ "security.notification_enable_delay": 0,
213
+ // Do not automatically fill sign-in forms with known usernames and
214
+ // passwords
215
+ "signon.autofillForms": false,
216
+ // Disable password capture, so that tests that include forms are not
217
+ // influenced by the presence of the persistent doorhanger notification
218
+ "signon.rememberSignons": false,
219
+ // Disable first-run welcome page
220
+ "startup.homepage_welcome_url": "about:blank",
221
+ // Disable first-run welcome page
222
+ "startup.homepage_welcome_url.additional": "",
223
+ // Disable browser animations (tabs, fullscreen, sliding alerts)
224
+ "toolkit.cosmeticAnimations.enabled": false,
225
+ // Prevent starting into safe mode after application crashes
226
+ "toolkit.startup.max_resumed_crashes": -1
227
+ };
228
+ return Object.assign(defaultPrefs, extraPrefs);
229
+ }
230
+ async function writePreferences(options) {
231
+ const prefsPath = import_path.default.join(options.path, "prefs.js");
232
+ const lines = Object.entries(options.preferences).map(([key, value]) => {
233
+ return `user_pref(${JSON.stringify(key)}, ${JSON.stringify(value)});`;
234
+ });
235
+ const result = await Promise.allSettled([
236
+ import_fs.default.promises.writeFile(import_path.default.join(options.path, "user.js"), lines.join("\n")),
237
+ // Create a backup of the preferences file if it already exitsts.
238
+ import_fs.default.promises.access(prefsPath, import_fs.default.constants.F_OK).then(
239
+ async () => {
240
+ await import_fs.default.promises.copyFile(
241
+ prefsPath,
242
+ import_path.default.join(options.path, "prefs.js.playwright")
243
+ );
244
+ },
245
+ // Swallow only if file does not exist
246
+ () => {
247
+ }
248
+ )
249
+ ]);
250
+ for (const command of result) {
251
+ if (command.status === "rejected") {
252
+ throw command.reason;
253
+ }
254
+ }
255
+ }
256
+ // Annotate the CommonJS export names for ESM import in node:
257
+ 0 && (module.exports = {
258
+ createProfile
259
+ });
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var browser_exports = {};
20
+ __export(browser_exports, {
21
+ Browser: () => Browser
22
+ });
23
+ module.exports = __toCommonJS(browser_exports);
24
+ var import_artifact = require("./artifact");
25
+ var import_browserContext = require("./browserContext");
26
+ var import_download = require("./download");
27
+ var import_instrumentation = require("./instrumentation");
28
+ var import_page = require("./page");
29
+ var import_socksClientCertificatesInterceptor = require("./socksClientCertificatesInterceptor");
30
+ class Browser extends import_instrumentation.SdkObject {
31
+ constructor(parent, options) {
32
+ super(parent, "browser");
33
+ this._downloads = /* @__PURE__ */ new Map();
34
+ this._defaultContext = null;
35
+ this._startedClosing = false;
36
+ this._idToVideo = /* @__PURE__ */ new Map();
37
+ this._isCollocatedWithServer = true;
38
+ this.attribution.browser = this;
39
+ this.options = options;
40
+ this.instrumentation.onBrowserOpen(this);
41
+ }
42
+ static {
43
+ this.Events = {
44
+ Context: "context",
45
+ Disconnected: "disconnected"
46
+ };
47
+ }
48
+ sdkLanguage() {
49
+ return this.options.sdkLanguage || this.attribution.playwright.options.sdkLanguage;
50
+ }
51
+ async newContext(progress, options) {
52
+ (0, import_browserContext.validateBrowserContextOptions)(options, this.options);
53
+ let clientCertificatesProxy;
54
+ let context;
55
+ try {
56
+ if (options.clientCertificates?.length) {
57
+ clientCertificatesProxy = await import_socksClientCertificatesInterceptor.ClientCertificatesProxy.create(progress, options);
58
+ options = { ...options };
59
+ options.proxyOverride = clientCertificatesProxy.proxySettings();
60
+ options.internalIgnoreHTTPSErrors = true;
61
+ }
62
+ context = await progress.race(this.doCreateNewContext(options));
63
+ context._clientCertificatesProxy = clientCertificatesProxy;
64
+ if (options.__testHookBeforeSetStorageState)
65
+ await progress.race(options.__testHookBeforeSetStorageState());
66
+ await context.setStorageState(progress, options.storageState, "initial");
67
+ this.emit(Browser.Events.Context, context);
68
+ return context;
69
+ } catch (error) {
70
+ await context?.close({ reason: "Failed to create context" }).catch(() => {
71
+ });
72
+ await clientCertificatesProxy?.close().catch(() => {
73
+ });
74
+ throw error;
75
+ }
76
+ }
77
+ async newContextForReuse(progress, params) {
78
+ const hash = import_browserContext.BrowserContext.reusableContextHash(params);
79
+ if (!this._contextForReuse || hash !== this._contextForReuse.hash || !this._contextForReuse.context.canResetForReuse()) {
80
+ if (this._contextForReuse)
81
+ await this._contextForReuse.context.close({ reason: "Context reused" });
82
+ this._contextForReuse = { context: await this.newContext(progress, params), hash };
83
+ return this._contextForReuse.context;
84
+ }
85
+ await this._contextForReuse.context.resetForReuse(progress, params);
86
+ return this._contextForReuse.context;
87
+ }
88
+ contextForReuse() {
89
+ return this._contextForReuse?.context;
90
+ }
91
+ _downloadCreated(page, uuid, url, suggestedFilename) {
92
+ const download = new import_download.Download(page, this.options.downloadsPath || "", uuid, url, suggestedFilename);
93
+ this._downloads.set(uuid, download);
94
+ }
95
+ _downloadFilenameSuggested(uuid, suggestedFilename) {
96
+ const download = this._downloads.get(uuid);
97
+ if (!download)
98
+ return;
99
+ download._filenameSuggested(suggestedFilename);
100
+ }
101
+ _downloadFinished(uuid, error) {
102
+ const download = this._downloads.get(uuid);
103
+ if (!download)
104
+ return;
105
+ download.artifact.reportFinished(error ? new Error(error) : void 0);
106
+ this._downloads.delete(uuid);
107
+ }
108
+ _videoStarted(context, videoId, path, pageOrError) {
109
+ const artifact = new import_artifact.Artifact(context, path);
110
+ this._idToVideo.set(videoId, { context, artifact });
111
+ pageOrError.then((page) => {
112
+ if (page instanceof import_page.Page) {
113
+ page.video = artifact;
114
+ page.emitOnContext(import_browserContext.BrowserContext.Events.VideoStarted, artifact);
115
+ page.emit(import_page.Page.Events.Video, artifact);
116
+ }
117
+ });
118
+ }
119
+ _takeVideo(videoId) {
120
+ const video = this._idToVideo.get(videoId);
121
+ this._idToVideo.delete(videoId);
122
+ return video?.artifact;
123
+ }
124
+ _didClose() {
125
+ for (const context of this.contexts())
126
+ context._browserClosed();
127
+ if (this._defaultContext)
128
+ this._defaultContext._browserClosed();
129
+ this.emit(Browser.Events.Disconnected);
130
+ this.instrumentation.onBrowserClose(this);
131
+ }
132
+ async close(options) {
133
+ if (!this._startedClosing) {
134
+ if (options.reason)
135
+ this._closeReason = options.reason;
136
+ this._startedClosing = true;
137
+ await this.options.browserProcess.close();
138
+ }
139
+ if (this.isConnected())
140
+ await new Promise((x) => this.once(Browser.Events.Disconnected, x));
141
+ }
142
+ async killForTests() {
143
+ await this.options.browserProcess.kill();
144
+ }
145
+ }
146
+ // Annotate the CommonJS export names for ESM import in node:
147
+ 0 && (module.exports = {
148
+ Browser
149
+ });