testeiya 0.2.0 → 0.3.9

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 (412) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -175
  3. package/dist/prompt/context.js +79 -0
  4. package/dist/prompt/context.js.map +1 -0
  5. package/dist/prompt/index.js +56 -0
  6. package/dist/prompt/index.js.map +1 -0
  7. package/dist/prompt/print.js +22 -0
  8. package/dist/prompt/print.js.map +1 -0
  9. package/dist/prompt/project-info.js +2 -0
  10. package/dist/prompt/project-info.js.map +1 -0
  11. package/{src/prompt/system-prompt.ts → dist/prompt/system-prompt.js} +24 -21
  12. package/dist/prompt/system-prompt.js.map +1 -0
  13. package/dist/prompt/testomatio.js +264 -0
  14. package/dist/prompt/testomatio.js.map +1 -0
  15. package/dist/prompt/tools.js +49 -0
  16. package/dist/prompt/tools.js.map +1 -0
  17. package/dist/prompt/vocab.js +8 -0
  18. package/dist/prompt/vocab.js.map +1 -0
  19. package/dist/src/args.js +72 -0
  20. package/dist/src/args.js.map +1 -0
  21. package/dist/src/cli.js +61 -0
  22. package/dist/src/cli.js.map +1 -0
  23. package/dist/src/env.js +69 -0
  24. package/dist/src/env.js.map +1 -0
  25. package/dist/src/mcp-extension.js +9 -0
  26. package/dist/src/mcp-extension.js.map +1 -0
  27. package/dist/src/mcp.js +139 -0
  28. package/dist/src/mcp.js.map +1 -0
  29. package/dist/src/model.js +66 -0
  30. package/dist/src/model.js.map +1 -0
  31. package/dist/src/result.js +41 -0
  32. package/dist/src/result.js.map +1 -0
  33. package/dist/src/run.js +199 -0
  34. package/dist/src/run.js.map +1 -0
  35. package/dist/src/session.js +77 -0
  36. package/dist/src/session.js.map +1 -0
  37. package/dist/vendor/mcp.js +14801 -0
  38. package/mcp-tools.json +2967 -0
  39. package/package.json +29 -41
  40. package/prompt/context.ts +101 -0
  41. package/prompt/index.ts +93 -0
  42. package/prompt/print.ts +23 -0
  43. package/prompt/project-info.ts +30 -0
  44. package/prompt/system-prompt.ts +173 -0
  45. package/{src/prompt → prompt}/testomatio.ts +119 -8
  46. package/{src/prompt → prompt}/tools.ts +30 -8
  47. package/prompt/vocab.ts +7 -0
  48. package/{skills.lock.json → skills/skills.lock.json} +11 -7
  49. package/skills/skills.yaml +34 -0
  50. package/models.catalog.json +0 -6963
  51. package/skills/codeceptjs/ci-fix-tests/SKILL.md +0 -120
  52. package/skills/codeceptjs/codeceptjs-auth/SKILL.md +0 -158
  53. package/skills/codeceptjs/codeceptjs-exploration/SKILL.md +0 -91
  54. package/skills/codeceptjs/codeceptjs-fundamentals/SKILL.md +0 -158
  55. package/skills/codeceptjs/codeceptjs-run-analysis/SKILL.md +0 -90
  56. package/skills/codeceptjs/debugging-codeceptjs-tests/SKILL.md +0 -234
  57. package/skills/codeceptjs/migrate-codeceptjs-4/SKILL.md +0 -110
  58. package/skills/codeceptjs/migrate-cypress-to-codeceptjs/SKILL.md +0 -306
  59. package/skills/codeceptjs/migrate-protractor-to-codeceptjs/SKILL.md +0 -352
  60. package/skills/codeceptjs/migrate-selenium-java-to-codeceptjs/SKILL.md +0 -472
  61. package/skills/codeceptjs/migrate-testcafe-to-codeceptjs/SKILL.md +0 -350
  62. package/skills/codeceptjs/refactoring-codeceptjs-tests/SKILL.md +0 -81
  63. package/skills/codeceptjs/writing-codeceptjs-tests/SKILL.md +0 -206
  64. package/skills/playwright-best-practices-skill/LICENSE.md +0 -7
  65. package/skills/playwright-best-practices-skill/README.md +0 -147
  66. package/skills/playwright-best-practices-skill/SKILL.md +0 -303
  67. package/skills/playwright-best-practices-skill/advanced/authentication-flows.md +0 -360
  68. package/skills/playwright-best-practices-skill/advanced/authentication.md +0 -871
  69. package/skills/playwright-best-practices-skill/advanced/clock-mocking.md +0 -364
  70. package/skills/playwright-best-practices-skill/advanced/mobile-testing.md +0 -409
  71. package/skills/playwright-best-practices-skill/advanced/multi-context.md +0 -288
  72. package/skills/playwright-best-practices-skill/advanced/multi-user.md +0 -393
  73. package/skills/playwright-best-practices-skill/advanced/network-advanced.md +0 -452
  74. package/skills/playwright-best-practices-skill/advanced/third-party.md +0 -464
  75. package/skills/playwright-best-practices-skill/architecture/pom-vs-fixtures.md +0 -363
  76. package/skills/playwright-best-practices-skill/architecture/test-architecture.md +0 -369
  77. package/skills/playwright-best-practices-skill/architecture/when-to-mock.md +0 -383
  78. package/skills/playwright-best-practices-skill/browser-apis/browser-apis.md +0 -391
  79. package/skills/playwright-best-practices-skill/browser-apis/iframes.md +0 -403
  80. package/skills/playwright-best-practices-skill/browser-apis/service-workers.md +0 -504
  81. package/skills/playwright-best-practices-skill/browser-apis/websockets.md +0 -403
  82. package/skills/playwright-best-practices-skill/core/annotations.md +0 -424
  83. package/skills/playwright-best-practices-skill/core/assertions-waiting.md +0 -361
  84. package/skills/playwright-best-practices-skill/core/configuration.md +0 -452
  85. package/skills/playwright-best-practices-skill/core/fixtures-hooks.md +0 -417
  86. package/skills/playwright-best-practices-skill/core/global-setup.md +0 -434
  87. package/skills/playwright-best-practices-skill/core/locators.md +0 -242
  88. package/skills/playwright-best-practices-skill/core/page-object-model.md +0 -315
  89. package/skills/playwright-best-practices-skill/core/projects-dependencies.md +0 -453
  90. package/skills/playwright-best-practices-skill/core/test-data.md +0 -492
  91. package/skills/playwright-best-practices-skill/core/test-suite-structure.md +0 -361
  92. package/skills/playwright-best-practices-skill/core/test-tags.md +0 -298
  93. package/skills/playwright-best-practices-skill/debugging/console-errors.md +0 -420
  94. package/skills/playwright-best-practices-skill/debugging/debugging.md +0 -504
  95. package/skills/playwright-best-practices-skill/debugging/error-testing.md +0 -360
  96. package/skills/playwright-best-practices-skill/debugging/flaky-tests.md +0 -496
  97. package/skills/playwright-best-practices-skill/frameworks/angular.md +0 -530
  98. package/skills/playwright-best-practices-skill/frameworks/nextjs.md +0 -469
  99. package/skills/playwright-best-practices-skill/frameworks/react.md +0 -531
  100. package/skills/playwright-best-practices-skill/frameworks/vue.md +0 -574
  101. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/ci-cd.md +0 -468
  102. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/docker.md +0 -283
  103. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/github-actions.md +0 -546
  104. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/gitlab.md +0 -397
  105. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/other-providers.md +0 -521
  106. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/parallel-sharding.md +0 -371
  107. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/performance.md +0 -453
  108. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/reporting.md +0 -424
  109. package/skills/playwright-best-practices-skill/infrastructure-ci-cd/test-coverage.md +0 -497
  110. package/skills/playwright-best-practices-skill/testing-patterns/accessibility.md +0 -359
  111. package/skills/playwright-best-practices-skill/testing-patterns/api-testing.md +0 -719
  112. package/skills/playwright-best-practices-skill/testing-patterns/browser-extensions.md +0 -506
  113. package/skills/playwright-best-practices-skill/testing-patterns/canvas-webgl.md +0 -493
  114. package/skills/playwright-best-practices-skill/testing-patterns/component-testing.md +0 -500
  115. package/skills/playwright-best-practices-skill/testing-patterns/drag-drop.md +0 -576
  116. package/skills/playwright-best-practices-skill/testing-patterns/electron.md +0 -509
  117. package/skills/playwright-best-practices-skill/testing-patterns/file-operations.md +0 -377
  118. package/skills/playwright-best-practices-skill/testing-patterns/file-upload-download.md +0 -562
  119. package/skills/playwright-best-practices-skill/testing-patterns/forms-validation.md +0 -561
  120. package/skills/playwright-best-practices-skill/testing-patterns/graphql-testing.md +0 -331
  121. package/skills/playwright-best-practices-skill/testing-patterns/i18n.md +0 -508
  122. package/skills/playwright-best-practices-skill/testing-patterns/performance-testing.md +0 -476
  123. package/skills/playwright-best-practices-skill/testing-patterns/security-testing.md +0 -430
  124. package/skills/playwright-best-practices-skill/testing-patterns/visual-regression.md +0 -634
  125. package/skills/playwright-cli/SKILL.md +0 -420
  126. package/skills/playwright-cli/references/element-attributes.md +0 -23
  127. package/skills/playwright-cli/references/playwright-tests.md +0 -39
  128. package/skills/playwright-cli/references/request-mocking.md +0 -87
  129. package/skills/playwright-cli/references/running-code.md +0 -241
  130. package/skills/playwright-cli/references/session-management.md +0 -225
  131. package/skills/playwright-cli/references/storage-state.md +0 -275
  132. package/skills/playwright-cli/references/test-generation.md +0 -433
  133. package/skills/playwright-cli/references/tracing.md +0 -139
  134. package/skills/playwright-cli/references/video-recording.md +0 -143
  135. package/skills/testeiya/README.md +0 -29
  136. package/skills/testeiya/answer-formatting/SKILL.md +0 -30
  137. package/skills/testeiya/check-cucumber/SKILL.md +0 -200
  138. package/skills/testeiya/check-tests/SKILL.md +0 -260
  139. package/skills/testeiya/manual-run-assistant/SKILL.md +0 -61
  140. package/skills/testeiya/testomatio-docs/INDEX.md +0 -175
  141. package/skills/testeiya/testomatio-docs/SKILL.md +0 -102
  142. package/skills/testeiya/testomatio-docs/docs/advanced/ai-powered-features/ai-agents.md +0 -144
  143. package/skills/testeiya/testomatio-docs/docs/advanced/ai-powered-features/ai-powered-features.md +0 -531
  144. package/skills/testeiya/testomatio-docs/docs/advanced/ai-powered-features/ai-requirements.md +0 -437
  145. package/skills/testeiya/testomatio-docs/docs/advanced/api-access/index.md +0 -191
  146. package/skills/testeiya/testomatio-docs/docs/advanced/branches-folder/index.md +0 -277
  147. package/skills/testeiya/testomatio-docs/docs/advanced/bulk-edit-folder/bulk-edit-demos.mdx +0 -39
  148. package/skills/testeiya/testomatio-docs/docs/advanced/bulk-edit-folder/bulk-edit-on-suite-and-test-level.md +0 -122
  149. package/skills/testeiya/testomatio-docs/docs/advanced/bulk-edit-folder/what-is-bulk-edit.md +0 -170
  150. package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/branches.md +0 -53
  151. package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/index.mdx +0 -98
  152. package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/jira-issue.md +0 -151
  153. package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/runs-and-reports.md +0 -377
  154. package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/work-in-jira.md +0 -267
  155. package/skills/testeiya/testomatio-docs/docs/advanced/living-doc/index.md +0 -138
  156. package/skills/testeiya/testomatio-docs/docs/advanced/milestones/index.md +0 -220
  157. package/skills/testeiya/testomatio-docs/docs/advanced/shortcuts/index.md +0 -48
  158. package/skills/testeiya/testomatio-docs/docs/advanced/tags-labels/labels-and-custom-fields.md +0 -201
  159. package/skills/testeiya/testomatio-docs/docs/advanced/tags-labels/tags-or-labels.md +0 -94
  160. package/skills/testeiya/testomatio-docs/docs/advanced/tags-labels/tags.md +0 -243
  161. package/skills/testeiya/testomatio-docs/docs/advanced/test-artifacts/index.md +0 -135
  162. package/skills/testeiya/testomatio-docs/docs/advanced/tql/index.md +0 -394
  163. package/skills/testeiya/testomatio-docs/docs/getting-started/index.md +0 -290
  164. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/azure.md +0 -96
  165. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/bamboo.md +0 -94
  166. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/bitbucket.md +0 -106
  167. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/circle.md +0 -115
  168. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/github.md +0 -120
  169. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/gitlab.md +0 -88
  170. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/index.mdx +0 -151
  171. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/jenkins.md +0 -121
  172. package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/teamcity.md +0 -96
  173. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/azure.md +0 -31
  174. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/clickup.md +0 -54
  175. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/confluence.md +0 -34
  176. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/github.md +0 -31
  177. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/gitlab.md +0 -93
  178. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/index.md +0 -131
  179. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/jira.md +0 -164
  180. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/linear.md +0 -29
  181. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/shortcut.md +0 -67
  182. package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/youtrack.md +0 -94
  183. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/azure-devops.md +0 -53
  184. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/email.md +0 -71
  185. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/jira.md +0 -52
  186. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/ms-teams.md +0 -60
  187. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/rules.md +0 -267
  188. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/slack.md +0 -82
  189. package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/telegram.md +0 -73
  190. package/skills/testeiya/testomatio-docs/docs/integrations/scim-provisioning/index.mdx +0 -207
  191. package/skills/testeiya/testomatio-docs/docs/integrations/scim-provisioning/okta.md +0 -204
  192. package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/azure.md +0 -95
  193. package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/google.md +0 -75
  194. package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/index.mdx +0 -33
  195. package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/okta.md +0 -108
  196. package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/saml.md +0 -66
  197. package/skills/testeiya/testomatio-docs/docs/legal/compliance/gdpr.md +0 -95
  198. package/skills/testeiya/testomatio-docs/docs/legal/compliance/index.mdx +0 -94
  199. package/skills/testeiya/testomatio-docs/docs/legal/compliance/privacy.md +0 -26
  200. package/skills/testeiya/testomatio-docs/docs/legal/compliance/terms.md +0 -32
  201. package/skills/testeiya/testomatio-docs/docs/legal/security/index.mdx +0 -242
  202. package/skills/testeiya/testomatio-docs/docs/legal/security/jira.md +0 -140
  203. package/skills/testeiya/testomatio-docs/docs/legal/security/subprocessors.md +0 -76
  204. package/skills/testeiya/testomatio-docs/docs/management/company/administration.md +0 -363
  205. package/skills/testeiya/testomatio-docs/docs/management/company/audit-log.md +0 -41
  206. package/skills/testeiya/testomatio-docs/docs/management/company/plan-features-comparison.md +0 -240
  207. package/skills/testeiya/testomatio-docs/docs/management/company/subscriptions.md +0 -326
  208. package/skills/testeiya/testomatio-docs/docs/management/company/trials.md +0 -75
  209. package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/accountant.md +0 -49
  210. package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/index.mdx +0 -285
  211. package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/read-only-user.md +0 -67
  212. package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/teams.md +0 -138
  213. package/skills/testeiya/testomatio-docs/docs/management/project/settings.md +0 -87
  214. package/skills/testeiya/testomatio-docs/docs/management/project/templates.md +0 -546
  215. package/skills/testeiya/testomatio-docs/docs/project/analytics/index.md +0 -326
  216. package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/classical-tests-markdown-format.md +0 -386
  217. package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/download-manual-tests-as-files.md +0 -378
  218. package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/export-to-obsidian.md +0 -112
  219. package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/export-to-spreadsheet.md +0 -127
  220. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/auto-import.md +0 -63
  221. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-Allure-TestOps.md +0 -49
  222. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-QTest.md +0 -41
  223. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-Qase.md +0 -39
  224. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-Zephyr.md +0 -37
  225. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-csv-xlsx.md +0 -117
  226. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-cucumber.md +0 -93
  227. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-qmetry.md +0 -44
  228. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-source-code.md +0 -117
  229. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-testcaselabs.md +0 -44
  230. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-testmo.md +0 -47
  231. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-testrail.md +0 -82
  232. package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-xray.md +0 -55
  233. package/skills/testeiya/testomatio-docs/docs/project/plans/index.md +0 -334
  234. package/skills/testeiya/testomatio-docs/docs/project/pulse/index.md +0 -104
  235. package/skills/testeiya/testomatio-docs/docs/project/runs/archive-runs-and-groups.md +0 -176
  236. package/skills/testeiya/testomatio-docs/docs/project/runs/custom-statuses.md +0 -195
  237. package/skills/testeiya/testomatio-docs/docs/project/runs/environments.md +0 -203
  238. package/skills/testeiya/testomatio-docs/docs/project/runs/managing-runs.md +0 -455
  239. package/skills/testeiya/testomatio-docs/docs/project/runs/merge-strategies.md +0 -137
  240. package/skills/testeiya/testomatio-docs/docs/project/runs/reports.md +0 -329
  241. package/skills/testeiya/testomatio-docs/docs/project/runs/rungroups.md +0 -342
  242. package/skills/testeiya/testomatio-docs/docs/project/runs/running-automated-tests.md +0 -256
  243. package/skills/testeiya/testomatio-docs/docs/project/runs/running-manual-and-automated-tests.md +0 -331
  244. package/skills/testeiya/testomatio-docs/docs/project/runs/running-tests-manually.md +0 -633
  245. package/skills/testeiya/testomatio-docs/docs/project/runs/temporary-tests-notes.md +0 -223
  246. package/skills/testeiya/testomatio-docs/docs/project/steps-snippets/snippets.md +0 -68
  247. package/skills/testeiya/testomatio-docs/docs/project/steps-snippets/steps.md +0 -181
  248. package/skills/testeiya/testomatio-docs/docs/project/tests/bdd-test-case-editor.md +0 -98
  249. package/skills/testeiya/testomatio-docs/docs/project/tests/classical-test-case-editor.md +0 -354
  250. package/skills/testeiya/testomatio-docs/docs/project/tests/classical-vs-bdd.md +0 -169
  251. package/skills/testeiya/testomatio-docs/docs/project/tests/copy-and-move-your-tests.md +0 -156
  252. package/skills/testeiya/testomatio-docs/docs/project/tests/other-features-for-test-case-design.md +0 -412
  253. package/skills/testeiya/testomatio-docs/docs/project/tests/test-case-creation-and-editing.md +0 -527
  254. package/skills/testeiya/testomatio-docs/docs/support/index.md +0 -75
  255. package/skills/testeiya/testomatio-docs/docs/test-reporting/artifacts.md +0 -388
  256. package/skills/testeiya/testomatio-docs/docs/test-reporting/cli.md +0 -215
  257. package/skills/testeiya/testomatio-docs/docs/test-reporting/configuration.md +0 -247
  258. package/skills/testeiya/testomatio-docs/docs/test-reporting/frameworks.md +0 -490
  259. package/skills/testeiya/testomatio-docs/docs/test-reporting/functions.md +0 -144
  260. package/skills/testeiya/testomatio-docs/docs/test-reporting/index.mdx +0 -48
  261. package/skills/testeiya/testomatio-docs/docs/test-reporting/junit.md +0 -248
  262. package/skills/testeiya/testomatio-docs/docs/test-reporting/logger.md +0 -138
  263. package/skills/testeiya/testomatio-docs/docs/test-reporting/php.md +0 -77
  264. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/bitbucket.md +0 -72
  265. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/csv.md +0 -23
  266. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/debug.md +0 -18
  267. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/github.md +0 -63
  268. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/gitlab.md +0 -29
  269. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/html.md +0 -80
  270. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/index.mdx +0 -57
  271. package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/testomatio.md +0 -331
  272. package/skills/testeiya/testomatio-docs/docs/test-reporting/python.md +0 -229
  273. package/skills/testeiya/testomatio-docs/docs/test-reporting/workflows.md +0 -325
  274. package/skills/testeiya/testomatio-docs/docs/tutorials/Interacting-via-API.md +0 -159
  275. package/skills/testeiya/testomatio-docs/docs/tutorials/Manual-Testing-Classic.md +0 -164
  276. package/skills/testeiya/testomatio-docs/docs/tutorials/Set-Up-Read-Only-Access.md +0 -85
  277. package/skills/testeiya/testomatio-docs/docs/tutorials/Using-AI-in-Testing.md +0 -163
  278. package/skills/testeiya/testomatio-docs/docs/tutorials/Working-with-Jira.md +0 -125
  279. package/skills/testeiya/testomatio-docs/docs/tutorials/java.md +0 -478
  280. package/skills/testeiya/testomatio-docs/docs/tutorials/playwright.md +0 -207
  281. package/skills/testeiya/testomatio-docs/docs/tutorials/webdriver.md +0 -218
  282. package/skills/testeiya/testomatio-docs/docs.lock.json +0 -6
  283. package/skills/testeiya/testomatio-reporter/SKILL.md +0 -307
  284. package/skills/testomatio/explorbot/explorbot-fundamentals/SKILL.md +0 -88
  285. package/skills/testomatio/explorbot/explorbot-plan/SKILL.md +0 -95
  286. package/skills/testomatio/explorbot/explorbot-setup/SKILL.md +0 -334
  287. package/skills/testomatio/test-automation/automate-manual-test-cases/CLAUDE.md +0 -56
  288. package/skills/testomatio/test-automation/automate-manual-test-cases/SKILL.md +0 -242
  289. package/skills/testomatio/test-automation/automate-manual-test-cases/references/CODECEPTJS_BEST_PRACTICES.md +0 -182
  290. package/skills/testomatio/test-automation/automate-manual-test-cases/references/FINAL_SUMMARY_TEMPLATE.md +0 -22
  291. package/skills/testomatio/test-automation/automate-manual-test-cases/references/PLAYWRIGHT_BEST_PRACTICES.md +0 -90
  292. package/skills/testomatio/test-automation/automate-manual-test-cases/references/POM_BEST_PRACTICES.md +0 -53
  293. package/skills/testomatio/test-automation/automate-manual-test-cases/references/TEST_DATA_MANAGEMENT.md +0 -52
  294. package/skills/testomatio/test-automation/debug-fix-failed-flaky-autotests/SKILL.md +0 -107
  295. package/skills/testomatio/test-automation/debug-fix-failed-flaky-autotests/references/DEBUGGING_QUICK_REFERENCE.md +0 -113
  296. package/skills/testomatio/test-automation/qa-automation-test-consolidation/SKILL.md +0 -29
  297. package/skills/testomatio/test-automation/run-tests-with-testomatio-reporter/SKILL.md +0 -151
  298. package/skills/testomatio/test-automation/setup-pr-testing/SKILL.md +0 -199
  299. package/skills/testomatio/test-automation/testomat-allure-adapter/SKILL.md +0 -289
  300. package/skills/testomatio/test-management/detect-duplicate-test-cases/SKILL.md +0 -86
  301. package/skills/testomatio/test-management/detect-duplicate-test-cases/references/DUPLICATE_INSTRUCTIONS.md +0 -54
  302. package/skills/testomatio/test-management/improve-test-cases/SKILL.md +0 -114
  303. package/skills/testomatio/test-management/improve-test-cases/references/TESTOMAT_MARKDOWN_EXAMPLE.md +0 -66
  304. package/skills/testomatio/test-management/pull-request-diff-analyzer/SKILL.md +0 -141
  305. package/skills/testomatio/test-management/qa-e2e-tests-reporting/SKILL.md +0 -354
  306. package/skills/testomatio/test-management/qa-e2e-tests-reporting/references/TESTOMATIO_ARTIFACTS.md +0 -82
  307. package/skills/testomatio/test-management/qa-e2e-tests-reporting/references/TESTOMATIO_HTML_REPORT.md +0 -37
  308. package/skills/testomatio/test-management/qa-e2e-tests-reporting/references/TESTOMATIO_REPORTERS_CONFIG.md +0 -118
  309. package/skills/testomatio/test-management/qa-pr-requirements-analyzer/SKILL.md +0 -149
  310. package/skills/testomatio/test-management/qa-pr-requirements-analyzer/references/summary-example.md +0 -54
  311. package/skills/testomatio/test-management/qa-requirement-reviewer/SKILL.md +0 -126
  312. package/skills/testomatio/test-management/qa-requirement-reviewer/references/requirements_reviewer_examples.md +0 -128
  313. package/skills/testomatio/test-management/qa-test-code-coverage/SKILL.md +0 -174
  314. package/skills/testomatio/test-management/qa-test-code-coverage/references/COVERAGE_FILE_FORMAT.md +0 -138
  315. package/skills/testomatio/test-management/qa-test-code-coverage/references/E2E_FRAMEWORKS.md +0 -65
  316. package/skills/testomatio/test-management/qa-test-code-coverage/scripts/check-coverage.mjs +0 -40
  317. package/skills/testomatio/test-management/qa-thinking/SKILL.md +0 -36
  318. package/skills/testomatio/test-management/qa-write-test-cases/SKILL.md +0 -267
  319. package/skills/testomatio/test-management/qa-write-test-cases/references/test-case-format.md +0 -387
  320. package/skills/testomatio/test-management/qa-write-test-cases/references/testomat-tms-guide.md +0 -72
  321. package/skills/testomatio/test-management/qa-write-test-cases/references/writing-rule.md +0 -159
  322. package/skills/testomatio/test-management/scan-automation-project/SKILL.md +0 -152
  323. package/skills/testomatio/test-management/sync-test-cases-with-tms/SKILL.md +0 -107
  324. package/skills/testomatio/test-management/sync-test-cases-with-tms/references/TESTOMATIO_CLI.md +0 -140
  325. package/skills/testomatio/test-management/testomatio-mcp/SKILL.md +0 -182
  326. package/skills/testomatio/test-management/testomatio-mcp/references/MCP_SETUP.md +0 -169
  327. package/skills.yaml +0 -21
  328. package/src/ai-debug.ts +0 -188
  329. package/src/api/agent-get.ts +0 -22
  330. package/src/api/agent-start.ts +0 -384
  331. package/src/api/client-log.ts +0 -29
  332. package/src/api/context.ts +0 -332
  333. package/src/api/debug-layout.ts +0 -47
  334. package/src/api/debug-report.ts +0 -29
  335. package/src/api/debug-snapshot.ts +0 -30
  336. package/src/api/debug-stream.ts +0 -52
  337. package/src/api/files-delete.ts +0 -184
  338. package/src/api/files-read.ts +0 -41
  339. package/src/api/files-rename.ts +0 -99
  340. package/src/api/files-tree.ts +0 -292
  341. package/src/api/files-write.ts +0 -41
  342. package/src/api/mcp.ts +0 -603
  343. package/src/api/memory.ts +0 -69
  344. package/src/api/open-external.ts +0 -39
  345. package/src/api/playwright-cli.ts +0 -606
  346. package/src/api/providers.ts +0 -457
  347. package/src/api/read-env-token.ts +0 -33
  348. package/src/api/sessions.ts +0 -79
  349. package/src/api/settings.ts +0 -120
  350. package/src/api/skills.ts +0 -58
  351. package/src/api/testomatio-attachment.ts +0 -89
  352. package/src/api/testomatio-auth.ts +0 -284
  353. package/src/api/testomatio-proxy.ts +0 -197
  354. package/src/api/testomatio-run-stats.ts +0 -81
  355. package/src/api/testomatio-target.ts +0 -225
  356. package/src/api/testomatio-transcription.ts +0 -82
  357. package/src/api/workspace-search.ts +0 -96
  358. package/src/api/workspace-sync.ts +0 -151
  359. package/src/api/workspace.ts +0 -165
  360. package/src/app-server.ts +0 -556
  361. package/src/bridge.ts +0 -251
  362. package/src/check-tests.ts +0 -156
  363. package/src/cli.ts +0 -17
  364. package/src/commands.ts +0 -244
  365. package/src/config.ts +0 -183
  366. package/src/connection.ts +0 -658
  367. package/src/context-store.ts +0 -265
  368. package/src/debug-bus.ts +0 -405
  369. package/src/extensions/tool-gate.ts +0 -220
  370. package/src/extensions/webui/ask-channel.ts +0 -52
  371. package/src/extensions/webui/index.ts +0 -184
  372. package/src/extensions/webui/tools/ask-question.ts +0 -88
  373. package/src/extensions/webui/tools/query-result.ts +0 -79
  374. package/src/extensions/webui/tools/render-chart.ts +0 -53
  375. package/src/extensions/webui/tools/render-item.ts +0 -61
  376. package/src/extensions/webui/tools/render-list.ts +0 -170
  377. package/src/extensions/webui/tools/render-result.ts +0 -85
  378. package/src/extensions/webui/tools/render-tree.ts +0 -71
  379. package/src/extensions/webui/tools/ui-widget.ts +0 -54
  380. package/src/extensions/webui/tools/widget-result.ts +0 -13
  381. package/src/extensions/webui/widget-channel.ts +0 -50
  382. package/src/file-log.ts +0 -196
  383. package/src/git-tracked.ts +0 -68
  384. package/src/gitignore.ts +0 -53
  385. package/src/json-store.ts +0 -43
  386. package/src/load-env.ts +0 -70
  387. package/src/loader-style.ts +0 -96
  388. package/src/main.ts +0 -140
  389. package/src/mcp-catalog.ts +0 -96
  390. package/src/models-catalog.ts +0 -72
  391. package/src/permissions.ts +0 -120
  392. package/src/project-dir.ts +0 -189
  393. package/src/project-info.ts +0 -108
  394. package/src/prompt/app-ui.ts +0 -59
  395. package/src/prompt/browser.ts +0 -27
  396. package/src/prompt/index.ts +0 -62
  397. package/src/server-info.ts +0 -62
  398. package/src/session-factory.ts +0 -442
  399. package/src/session-store.ts +0 -115
  400. package/src/shell-env.ts +0 -45
  401. package/src/skills.ts +0 -163
  402. package/src/sync-snapshot.ts +0 -140
  403. package/src/telemetry.ts +0 -239
  404. package/src/testomatio-auth.ts +0 -299
  405. package/src/testomatio.ts +0 -98
  406. package/src/theme.ts +0 -30
  407. package/src/user-env.ts +0 -94
  408. package/src/welcome.ts +0 -127
  409. package/src/workspace/safe-path.ts +0 -85
  410. package/src/workspace/test-md.ts +0 -70
  411. package/src/workspace-model.ts +0 -440
  412. package/testeiya.config.json +0 -14
@@ -1,242 +0,0 @@
1
- ---
2
- name: automate-manual-test-cases
3
- description: This skill converts manual test cases into production-ready automated test scripts. It analyzes the existing automation framework, interprets manual test steps, and generates maintainable tests following automation best practices. Use this skill whenever the user wants to automate manual test cases, expand test coverage, or create end-to-end automated flows from existing test documentation.
4
- license: MIT
5
- metadata:
6
- author: Testomat.io
7
- version: 1.0.0
8
- ---
9
-
10
- # Automate Manual Test Cases
11
-
12
- Generate production-ready automated test scripts from manual test cases, reusing the project's existing framework, patterns, and components.
13
-
14
- ## Checklist
15
-
16
- Complete all steps in order:
17
-
18
- 1. [ ] Analyze project architecture => detect framework (1.1), analyze conventions (1.2), find reusable components (1.3).
19
- 2. [ ] Understand manual test => normalize input (2.1), handle ambiguous steps (2.2), detect inconsistencies (2.3).
20
- 3. [ ] Write test code => implement using existing POM/patterns (3.1-3.2), add assertions (3.3), output code (3.4).
21
- 4. [ ] Verify & heal => execute test (4.1), heal if fails: locators → timing → assertions → flow (4.2), **max 3 attempts**.
22
- 5. [ ] Finalization => save test (5.1), manage test data & fixtures (5.2), run related tests and output summary (5.3).
23
-
24
- ### Progress
25
-
26
- * STEP: 1/5 (Analyze Project Architecture)
27
- * Previous: (none)
28
- * Next ➡️ Step 2: Understand Manual Test.
29
-
30
- Update this block after completing each step (see CLAUDE.md).
31
-
32
- ## Step 1: Analyze Project Architecture
33
-
34
- ### 1.1 Detect Automation Framework
35
-
36
- - If the user specifies a framework (e.g., "use CodeceptJS") => trust it.
37
- - Otherwise inspect the project:
38
- - `package.json` dependencies and scripts.
39
- - Config files (`playwright.config.js`, `codecept.conf.js`, `cypress.json`, etc.).
40
- - If detection fails, ask with numbered options:
41
-
42
- ```
43
- ❓ Which framework should I use?
44
- 1. Playwright
45
- 2. CodeceptJS
46
- 3. Cypress
47
- 4. Other (specify)
48
- ```
49
-
50
- After detection, apply the matching reference:
51
- - [CodeceptJS Best Practices](./references/CODECEPTJS_BEST_PRACTICES.md)
52
- - [Playwright Best Practices](./references/PLAYWRIGHT_BEST_PRACTICES.md)
53
-
54
- ### 1.2 Analyze Project Conventions
55
-
56
- - Test structure and naming: folders (`tests/`, `e2e/`) and file patterns (`*.spec.js`, etc.).
57
- - Execution: `package.json` scripts and test commands.
58
- - Configuration: base URLs, env variables, global setup.
59
- - Assertion style: libraries and patterns used in existing tests.
60
-
61
- ### 1.3 Identify Reusable Components
62
-
63
- Scan for:
64
- - Page Objects: existing locators and methods (`src/pages`, `pages/`, `page-objects/`, etc.).
65
- - Fixtures/hooks: setup and teardown patterns.
66
- - Test data: constants, CSV, JSON (`test-data`, `src/testData`, etc.).
67
- - Utils/helpers (`utils/`, `helpers/`, etc.).
68
-
69
- Exclude from analysis:
70
- - Dependency folders (`node_modules/`).
71
- - Build artifacts (`dist/`, `build/`, `out/`).
72
- - Hidden/system folders (`.git/`, `.cache/`).
73
- - Deprecated code: `deprecated/`, `legacy/`, `old/`, `backup/`, `__backup__/`, `archive/`, `temp/`, files marked `outdated`, older versioned folders (`v1/`, `v2/`) when newer versions exist.
74
- - Do not auto-exclude folders with unclear purpose.
75
- - **User-specified exclusions always override auto-detected ones.**
76
-
77
- ## Step 2: Understand Manual Test
78
-
79
- Input may be plain text, markdown steps, or comment blocks in source files (`//`, `/* */`).
80
-
81
- ### 2.1 Normalize Input Structure
82
-
83
- Convert input into:
84
- - `summary` (or scenario title).
85
- - `preconditions` (optional).
86
- - `steps` (required) — ordered actions with expected results.
87
-
88
- For comment-based inputs:
89
- - Treat comment markers (`//`, `*`, `-`) as structural hints.
90
- - Convert bullet points into ordered steps.
91
- - Bind `_Expected:_` or `Expected Results` blocks to the preceding step.
92
- - Merge multiline expected results into a single logical expectation.
93
-
94
- Example:
95
-
96
- ```md
97
- * Navigate to page
98
- _Expected:_ Page opens
99
- * Click once on the ${Custom statuses} block
100
- _Expected_: List includes "manual" option.
101
- ```
102
-
103
- **Do not delete or rewrite original manual test comments.**
104
- - Keep them as-is in the file.
105
- - Generate automation code below or alongside them.
106
- - Separate with a marker: `// === AUTO-GENERATED TEST (based on steps above) ===`
107
-
108
- ### 2.2 Handle Ambiguous Steps
109
-
110
- Classify each step:
111
- - Clear => proceed.
112
- - Partially clear => make a reasonable assumption, mark it with ⚠️ in output (e.g., "⚠️ Assuming 'Submit' button triggers form submission"), continue.
113
- - Unclear and blocking => ask the user, with numbered options when there are alternatives:
114
-
115
- ```
116
- ❓ Do you want to:
117
- 1. Use existing LoginPage
118
- 2. Create new LoginPage
119
- 3. Skip login step
120
- ```
121
-
122
- Use context from previous steps and common UI patterns (click, input, navigation).
123
- **Do not block the whole flow on one unclear step — continue with the rest.**
124
-
125
- ### 2.3 Detect Inconsistencies
126
-
127
- If step actions, expected results, and known UI patterns disagree:
128
- - Proceed with best-effort interpretation.
129
- - Flag with ⚠️ in output.
130
-
131
- ## Step 3: Write Test Code
132
-
133
- ### 3.1 Choose Implementation Strategy
134
-
135
- - Reusable components exist (Page Objects, helpers, fixtures) => reuse them; follow project patterns and naming.
136
- - Partial structure exists => extend existing components; keep consistency with current design.
137
- - No structure => simple readable locators, minimal implementation, no unnecessary abstractions.
138
-
139
- Priorities: consistency with the project, then readability, then maintainability.
140
-
141
- **Do not ignore existing Page Objects or duplicate selectors/logic.**
142
-
143
- ### 3.2 Follow Framework Patterns
144
-
145
- - One test, one flow — each test validates a single scenario.
146
- - Separation of concerns: tests => assertions and flow control; Page Objects => UI interactions; utils => reusable logic.
147
- - Extend, don't modify — add to existing components without changing stable code.
148
- - Use fixtures for setup, authentication, and shared state.
149
-
150
- See [POM Best Practices](./references/POM_BEST_PRACTICES.md).
151
-
152
- ### 3.3 Generate Assertions
153
-
154
- - Base assertions on expected results from manual steps.
155
- - Validate UI state (visibility, text, attributes), data correctness, navigation outcomes.
156
- - Avoid weak assertions (only checking page load) and over-asserting irrelevant details.
157
-
158
- ### 3.4 Output Test Code
159
-
160
- - Generate complete, runnable code that integrates with the existing framework.
161
- - Follow project formatting and style conventions.
162
- - Place code in the appropriate test file or suggest a location.
163
-
164
- ## Step 4: Verify & Heal
165
-
166
- ### 4.1 Execute Test
167
-
168
- **Run only the generated test, never the full suite:**
169
- - Playwright: `npx playwright test path/to/spec.ts`
170
- - CodeceptJS: `npx codeceptjs run path/to/test.js`
171
-
172
- If it passes => go to Step 5. If it fails => heal (4.2).
173
-
174
- ### 4.2 Heal Failed Tests
175
-
176
- Fix one issue at a time, in priority order:
177
- 1. Locators — prefer stable selectors (`data-testid`, `aria-label`), avoid deeply nested XPath.
178
- 2. Timing — use framework-native waits, avoid hard sleeps.
179
- 3. Assertions — match actual app behavior, not assumptions.
180
- 4. Flow — verify navigation, preconditions, missing steps.
181
-
182
- Process: identify a single failure => apply one fix => re-run => repeat.
183
- Keep the last working version to roll back to if stuck.
184
-
185
- **Max 3 healing attempts. If still failing, stop and report the issues.**
186
-
187
- When the root cause is unclear, use the debug-fix-failed-flaky-autotests skill for structured step-by-step diagnosis.
188
-
189
- If MCP/debug tools are available:
190
- - Inspect DOM (`document.querySelector(...).outerHTML`).
191
- - Use step-by-step execution.
192
- - Capture logs, screenshots, or traces.
193
-
194
- ### 4.3 Stability Criteria
195
-
196
- A test is stable when it:
197
- - Passes 1-2 consecutive runs.
198
- - Has no hard waits.
199
- - Uses resilient locators.
200
-
201
- ## Step 5: Finalization
202
-
203
- ### 5.1 Save Final Test Code
204
-
205
- - Save the working test to the appropriate project location.
206
- - Follow naming conventions and stay consistent with existing tests.
207
-
208
- ### 5.2 Test Data & Fixtures
209
-
210
- - Use centralized test data if the project has it (JSON/CSV/constants).
211
- - Reuse authentication/setup fixtures; don't duplicate setup inside tests.
212
-
213
- See [Test Data Management](./references/TEST_DATA_MANAGEMENT.md).
214
-
215
- ### 5.3 Final Run & Summary
216
-
217
- - Execute 1-2 related tests to confirm integration (related tests only, not the full suite).
218
- - Exit condition: test passes 2 consecutive runs.
219
- - Show a spec-to-code mapping:
220
-
221
- | Manual Step | Automation Action |
222
- |-------------|-------------------|
223
- | Navigate to Settings | `basePage.clickOnNavigationMenuButton("Settings")` |
224
-
225
- - Output the final summary using [Final Summary Template](./references/FINAL_SUMMARY_TEMPLATE.md).
226
-
227
- ## Example: Comment-Based Request
228
-
229
- ```
230
- Use automate-manual-test-cases skill for CodeceptJS framework to write automation
231
- script "tests/plan-for-guest.test.ts" based on manual steps below in this file as
232
- comments (leaving comments in the file for further analysis). Set a specific "smoke"
233
- tag for this test.
234
- Use as reference for extra proper examples:
235
- * `tests/payment-methods.test.ts` - Canonical test file with team approved format.
236
- * `src/pages/paymentMethods.page.ts` - Good described payment page object.
237
- Avoid mistakes from legacy code examples:
238
- * `src/pages/paymentOutdated.page.ts` - Outdated example with old patterns.
239
-
240
- Finally, verify that the generated test is passed on - `BASE_URL = 'https://test.com/'`
241
- and provide final review for user.
242
- ```
@@ -1,182 +0,0 @@
1
- # CodeceptJS Best Practices
2
-
3
- High-level CodeceptJS-specific recommendations. They complement general testing and POM best practices.
4
- Prefer adapting to the existing project over enforcing new patterns.
5
-
6
- ## Architecture
7
-
8
- Think in layers of responsibility, not folders. Each layer has one job — do not mix locators, business logic, and assertions:
9
-
10
- - Pages: dumb locator containers with simple UI interactions only. No business logic.
11
- - Actors (I) / Custom Steps: own business logic; orchestrate Page actions into domain workflows, multi-step interactions, conditional logic.
12
- - Helpers / Utilities: low-level technical operations — browser automation wrappers (Playwright, WebDriver, Puppeteer), API calls, DB access, file operations, custom locators.
13
- - Test Data / Constants: shared configuration, constants, enums, mock data, fixtures.
14
- - Plugins / Extensions: optional enhancements — auto-login, soft assertions, reporting.
15
- - Tests / Specs: independent, readable, scenario-focused.
16
-
17
- Choose the simplest approach that matches the project:
18
- - If project uses Page Objects => use them.
19
- - Else => interact directly in tests.
20
-
21
- ### Register New Page Objects
22
-
23
- After creating a new page object file, add it to:
24
- 1. `codecept.conf.ts` — `include` section
25
- 2. `steps.d.ts` — type declarations
26
-
27
- ## Naming Rules
28
-
29
- No abbreviations — always write full words:
30
-
31
- | Wrong | Correct |
32
- |-------|---------|
33
- | `Nav` | `Navigation` |
34
- | `Btn` | `Button` |
35
- | `Pg` | `Page` |
36
-
37
- Locator names must include the element type as a suffix:
38
-
39
- | Wrong (no type) | Correct (with type) |
40
- |-----------------|---------------------|
41
- | `compareOverview` | `compareOverviewSection` |
42
- | `finishRun` | `finishRunButton` |
43
- | `runGroupTitle` | `runGroupTitleHeader` |
44
-
45
- ## Locator Strategy
46
-
47
- Priority:
48
- 1. Semantic text / element roles (`I.seeElement()`, `{ name: 'field' }`).
49
- 2. CSS ID selectors.
50
- 3. `data-testid` (when semantic locators aren't possible).
51
- 4. Custom locators (last resort).
52
-
53
- ```javascript
54
- // Good locators
55
- I.click('Submit')
56
- I.fillField('Email', 'user@test.com')
57
- I.click({ testId: 'submit-form-btn' })
58
- I.click('.btn-primary.submit-form') // only if necessary
59
- ```
60
-
61
- ### Reusing Locators
62
-
63
- - Before creating a new locator, search `src/pages/`, `pages/`, `components/`.
64
- - If a locator for the same element already exists — reuse it.
65
- - Avoid duplicates (e.g. `reportButton` vs `combinedReportButton`) — they create confusion and maintenance issues.
66
-
67
- ### Tab Active State Verification
68
-
69
- After clicking a tab, verify it is active. Different implementations use different indicators:
70
-
71
- ```typescript
72
- private generateActiveTabLocator(tabName: string) {
73
- return locate('[role="tab"][aria-selected="true"]').withText(tabName);
74
- }
75
-
76
- checkThatTabIsActive(tabName: string) {
77
- const activeTab = this.generateActiveTabLocator(tabName);
78
- I.waitForElement(activeTab, timeouts.THREE);
79
- I.seeElement(activeTab);
80
- }
81
- ```
82
-
83
- ## Custom Steps (Actor Methods)
84
-
85
- - Multi-step logic belongs in Actor methods.
86
- - Use for login, conditional flows, API+UI flows, or explicit waits.
87
-
88
- ```javascript
89
- module.exports = function() {
90
- return actor({
91
- async loginAs(email, password) {
92
- I.amOnPage('/login')
93
- I.fillField('Email', email)
94
- I.fillField('Password', password)
95
- I.click('Sign In')
96
- I.waitForUrl('**/dashboard')
97
- },
98
-
99
- async ensureLoggedIn(user) {
100
- const loggedIn = await I.grabNumberOfVisibleElements('.logout-button') > 0
101
- if (!loggedIn) await this.loginAs(user.email, user.password)
102
- }
103
- })
104
- }
105
- ```
106
-
107
- ## Fixtures & Hooks
108
-
109
- - Use `Before` hook for setup and authentication.
110
- - Use `After` hook for cleanup (API cleanup only, no UI).
111
- - Reuse existing fixtures when present in the project.
112
-
113
- ```typescript
114
- Before(async ({ app }) => {
115
- const login = await app.login(token);
116
- app.setToken(`Bearer ${login.data.jwt}`);
117
- loginAs("mainUser");
118
- });
119
-
120
- After(async ({ app }) => {
121
- await app.cleanup();
122
- });
123
- ```
124
-
125
- ### Test Data Usage
126
-
127
- Prefer shared constants, enums, or test data over hardcoded values:
128
-
129
- ```typescript
130
- import { timeouts } from "../testData/timeout";
131
-
132
- I.waitForElement(locator, timeouts.THREE); // 3s
133
- ```
134
-
135
- ### API in Preconditions, UI for Test Steps
136
-
137
- - Before hook: use API to create test data (users, projects, runs, etc.).
138
- - Scenario body: use UI interactions — that is what the test is verifying.
139
- - Exception: simple navigation to a starting URL in Before is acceptable.
140
-
141
- ### Formatting Rules
142
-
143
- - One blank line between every action in Scenario body.
144
- - No step comments inside Scenario body — method names must be self-documenting.
145
- - No magic strings in test body — extract to `const` at top of file.
146
- - No long `projectData.x.y.z.w` chains in test body — extract to named `const`.
147
-
148
- ## Test Tags & Filtering
149
-
150
- - Tagging and filtering are project-specific.
151
- - If the project already uses tags (e.g., @Smoke, @Regression, @P0), follow existing conventions.
152
- - Do not introduce new tagging systems unless explicitly required.
153
-
154
- ## Debugging & Reporting
155
-
156
- - Use `--debug` / `--verbose`.
157
- - Save screenshots: `I.saveScreenshot('name.png')`.
158
- - Playwright traces can be enabled in helper config.
159
- - Custom helpers: `DebugHelper` for logs, screenshots, pause.
160
-
161
- ## Anti-Patterns (Avoid)
162
-
163
- - Never hardcode test data — use data files or environment variables.
164
- - Never share state between tests — each test sets up its own state.
165
- - Never commit secrets or credentials — use environment variables.
166
- - Never ignore flaky tests — fix immediately with proper waits.
167
- - Never skip test cleanup — use After hooks.
168
- - Prefer semantic locators (`{ name: 'button' }`) over CSS-only (`.btn-primary`).
169
-
170
- Code smells from legacy code (do not repeat):
171
- - Hardcoded waits (like `I.wait(n)`).
172
- - Inline cleanup inside test scenarios (`// cleanup`).
173
- - Locators directly in test files instead of page objects.
174
- - Hardcoded IDs and config values in tests.
175
-
176
- ## Checklist
177
-
178
- - [ ] Keep tests independent — each test sets up its own state
179
- - [ ] Use test data constants instead of hardcoded values
180
- - [ ] Follow naming rules (full words, element type suffix)
181
- - [ ] Reuse existing locators before creating new ones
182
- - [ ] Add assertions based on expected results from manual steps
@@ -1,22 +0,0 @@
1
- # Final Summary Template
2
-
3
- Use this template after completing the conversion process:
4
-
5
- ```
6
- **Summary:**
7
- - Framework: [Playwright/CodeceptJS/Cypress]
8
- - Tests generated: [N]
9
- - Passed: [N]
10
- - Needs review: [N]
11
-
12
- **Generated Files:**
13
- - [path/to/test1.spec.ts] ✅
14
- - [path/to/test2.spec.ts] ⚠️ ([issue])
15
- - [path/to/test3.spec.ts] ✅
16
-
17
- **Key Issues:**
18
- [Short description of main problems, if any]
19
-
20
- **Next steps:**
21
- ...
22
- ```
@@ -1,90 +0,0 @@
1
- # Playwright Best Practices
2
-
3
- High-level Playwright-specific recommendations. They complement general testing and POM best practices.
4
- Prefer adapting to the existing project over enforcing new patterns.
5
-
6
- ## Architecture & Project Structure
7
-
8
- - Do not assume a fixed architecture (e.g., Pages, Modules, Fixtures).
9
- - Detect and follow the existing project structure.
10
- - Common patterns may include:
11
- - Pages: dumb locator containers with simple element interactions only.
12
- - Modules: own all business logic, orchestrate Page actions into domain workflows.
13
- - Fixtures: dependency injection — tests never instantiate Pages or Modules directly.
14
- - `test.step()`: use for reporting, trace analysis, and debugging.
15
-
16
- Choose the simplest approach that matches the project:
17
- - If project uses Page Objects => use them.
18
- - Else => interact directly in tests.
19
-
20
- ## Locator Strategy
21
-
22
- - Prefer user-facing and semantic locators.
23
- - Use built-in Playwright locator strategies when possible.
24
- - Prefer stability over brevity.
25
- - Avoid selectors tied to layout or styling.
26
-
27
- Priority:
28
- 1. Role-based selectors (buttons, links, alerts).
29
- 2. Labels (form inputs).
30
- 3. Visible text.
31
- 4. Test-specific attributes (data-testid).
32
- 5. CSS selectors.
33
-
34
- Stay consistent within the project:
35
- - If the project relies on semantic locators => follow that pattern.
36
- - If it uses test IDs => prefer `data-testid` as the primary selector.
37
-
38
- ```typescript
39
- // Preferred (semantic)
40
- await page.getByRole('button', { name: 'Submit' }).click()
41
- await page.getByLabel('Email').fill('user@test.com')
42
-
43
- // Fallback (only if necessary)
44
- await page.locator('.btn-primary.submit-form').click()
45
- ```
46
-
47
- ## Fixtures
48
-
49
- - Playwright provides built-in fixtures (e.g., `page`, `context`, `request`).
50
- - Reuse existing custom fixtures for setup, authentication, or shared state.
51
- - If no fixture structure exists, simple tests can interact directly without introducing abstraction.
52
- - Introduce new fixtures only when they clearly improve reuse, readability, or setup consistency.
53
-
54
- ## API Testing
55
-
56
- Playwright supports both API and UI interactions via `request`.
57
-
58
- - Prefer API for: test setup, teardown, data preparation.
59
- - Use UI for: behavior validation, end-user flows.
60
- - Pattern: setup via API, verify via UI.
61
-
62
- ## Test Tags & Filtering
63
-
64
- - Tagging and filtering are project-specific.
65
- - If the project already uses tags (e.g., @Smoke, @Regression, @P0), follow existing conventions.
66
- - Do not introduce new tagging systems unless explicitly required.
67
-
68
- ## Debugging & Reporting
69
-
70
- - Use built-in Playwright debugging tools or Playwright MCP when needed: traces, screenshots, logs.
71
- - Add extra steps or logs only if they improve clarity.
72
- - Avoid excessive logging or noise in tests.
73
-
74
- ## Anti-Patterns (Avoid)
75
-
76
- - Never embed test data directly in test logic — prefer centralized test data (JSON, factories, or generators).
77
- - Never share state between tests — each test is isolated.
78
- - Never ignore flaky tests — fix immediately with proper waits.
79
- - Never use arbitrary `sleep()` — use explicit waits instead.
80
- - Never commit secrets or credentials — use environment variables.
81
- - Never over-abstract simple test flows.
82
-
83
- ## Checklist
84
-
85
- - [ ] Use `test.step()` for reporting and trace analysis
86
- - [ ] Use API for setup/teardown over UI when possible
87
- - [ ] Keep tests independent — each test sets up its own state
88
- - [ ] Use test data instead of hardcode
89
- - [ ] Run tests in parallel (when safe)
90
- - [ ] Implement soft assertions for non-critical checks
@@ -1,53 +0,0 @@
1
- # Page Object Model (POM) Best Practices
2
-
3
- ## Core Principles
4
-
5
- ### Single Responsibility
6
- - Each Page Object represents one page or a clearly defined UI component.
7
- - Each method performs a single, clear action.
8
- - Keep structure flat and simple.
9
- - Avoid unnecessary abstractions.
10
- - Introduce shared components only when reuse is clear.
11
-
12
- ### Encapsulation
13
- - Hide implementation details such as selectors and waiting logic.
14
- - Expose only meaningful, high-level actions to tests.
15
- - Do not expose raw selectors outside the Page Object.
16
-
17
- ### Reusability
18
- - Extract shared logic only when reuse is clear.
19
- - Extract shared functionality into parent classes.
20
- - Use composition over inheritance when appropriate.
21
-
22
- ## Wait Strategies
23
-
24
- - Use condition-based waits (element visible, enabled, loaded).
25
- - Avoid fixed delays or hard waits.
26
- - Rely on framework auto-waiting where available.
27
- - Do not duplicate waiting logic unnecessarily.
28
-
29
- ```typescript
30
- // Bad: hard wait
31
- await page.waitForTimeout(5000)
32
- ```
33
-
34
- ## Error Handling
35
-
36
- - Do not override or wrap framework errors for UI interactions.
37
- - Rely on built-in error handling for element actions.
38
- - Avoid adding manual visibility or existence checks before actions.
39
-
40
- - Add contextual error handling only for:
41
- - API interactions
42
- - Data processing
43
- - Non-UI logic
44
-
45
- ## Summary Checklist
46
-
47
- - [ ] One class per page/component.
48
- - [ ] Private/protected locators.
49
- - [ ] Explicit waits over hard waits.
50
- - [ ] Meaningful method names.
51
- - [ ] No assertions in Page Objects.
52
- - [ ] Reusable component structure.
53
- - [ ] Clear error messages.
@@ -1,52 +0,0 @@
1
- # Test Data Management
2
-
3
- ## Core Principles
4
-
5
- - Test data must support the test scenario, not define it.
6
- - Keep test data minimal, relevant, and easy to understand.
7
- - Ensure tests remain independent and do not rely on shared mutable data.
8
- - Prefer clarity over reusability when in conflict.
9
-
10
- ## Data Placement Strategy
11
-
12
- When deciding where to store test data:
13
- 1. If data is used only within a single test => Keep it simple or inline within that test.
14
- 2. If data is reused across multiple tests => Extract it into a shared test-data.
15
- 3. If data is large, structured, or tabular => Store it in external files (e.g., JSON, CSV).
16
- - LOAD data from external file.
17
- - ITERATE over dataset in tests.
18
- 4. If data depends on environment (URLs, credentials, configs) => Use environment variables or configuration files.
19
- - READ baseUrl from environment.
20
- - USE baseUrl in test.
21
-
22
- **Priority:** Start local - Extract only when reuse is clear.
23
-
24
- ## Data Structure Guidelines
25
-
26
- - Use clear, descriptive names for all data variables.
27
- - Keep data structures simple and predictable.
28
- - Avoid deeply nested or overly complex data unless required.
29
- - Group related data logically (e.g., user profiles, product sets).
30
-
31
- ## Test Isolation Rules
32
-
33
- - Each test must be fully independent.
34
- - Tests must not share mutable data or state.
35
- - Avoid dependencies between tests.
36
- - Prefer framework-provided isolation over manual resource handling.
37
-
38
- ## Reusability Guidelines
39
-
40
- - Reuse test data only when it reduces duplication and improves clarity.
41
- - Do not over-centralize data if it makes tests harder to read.
42
- - Keep frequently used data in shared modules.
43
- - Keep unique or scenario-specific data close to the test.
44
-
45
- ## Anti-Patterns to Avoid
46
-
47
- - Hardcoding credentials or secrets in test files.
48
- - Using real user or production data.
49
- - Sharing state between tests.
50
- - Creating test data without cleanup.
51
- - Over-engineering data structures for simple scenarios.
52
-