create-appraisejs 0.3.0-alpha.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1088) hide show
  1. package/README.md +19 -7
  2. package/dist/cli-args.d.ts +6 -0
  3. package/dist/cli-args.d.ts.map +1 -0
  4. package/dist/cli-args.js +33 -0
  5. package/dist/cli-args.js.map +1 -0
  6. package/dist/cli.d.ts +2 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +16 -8
  9. package/dist/cli.js.map +1 -1
  10. package/dist/config.d.ts +2 -1
  11. package/dist/config.d.ts.map +1 -1
  12. package/dist/config.js +3 -3
  13. package/dist/config.js.map +1 -1
  14. package/dist/copy-template.d.ts +3 -2
  15. package/dist/copy-template.d.ts.map +1 -1
  16. package/dist/copy-template.js +6 -7
  17. package/dist/copy-template.js.map +1 -1
  18. package/dist/create-project.d.ts.map +1 -1
  19. package/dist/create-project.js +8 -8
  20. package/dist/create-project.js.map +1 -1
  21. package/dist/prepare-template-utils.d.ts +9 -1
  22. package/dist/prepare-template-utils.d.ts.map +1 -1
  23. package/dist/prepare-template-utils.js +49 -1
  24. package/dist/prepare-template-utils.js.map +1 -1
  25. package/dist/prompts.d.ts +6 -1
  26. package/dist/prompts.d.ts.map +1 -1
  27. package/dist/prompts.js +9 -2
  28. package/dist/prompts.js.map +1 -1
  29. package/dist/sync-templates-utils.d.ts.map +1 -1
  30. package/dist/sync-templates-utils.js +4 -1
  31. package/dist/sync-templates-utils.js.map +1 -1
  32. package/dist/template-catalog.d.ts +22 -0
  33. package/dist/template-catalog.d.ts.map +1 -0
  34. package/dist/template-catalog.js +50 -0
  35. package/dist/template-catalog.js.map +1 -0
  36. package/package.json +5 -3
  37. package/templates/blank/package-lock.json +15012 -0
  38. package/templates/blank/package.json +139 -0
  39. package/templates/blank/prisma/dev.db +0 -0
  40. package/templates/blank/public/favicon.svg +8 -0
  41. package/templates/blank/public/logo.svg +13 -0
  42. package/templates/blank/scripts/sync-appraise-base-template.ts +244 -0
  43. package/templates/blank/scripts/sync-template-step-groups.ts +247 -0
  44. package/templates/blank/src/app/globals.css +90 -0
  45. package/templates/blank/src/app/layout.tsx +207 -0
  46. package/templates/blank/src/components/theme/theme-provider.tsx +16 -0
  47. package/templates/blank/src/lib/template-sync-utils.js +50 -0
  48. package/templates/blank/src/lib/template-sync-utils.ts +65 -0
  49. package/templates/blank/tsconfig.json +31 -0
  50. package/templates/starter/.env.example +2 -0
  51. package/templates/starter/.vscode/settings.json +13 -0
  52. package/templates/starter/README.md +57 -0
  53. package/templates/starter/automation/config/environments/environments.json +1 -0
  54. package/templates/starter/automation/mapping/locator-map.json +1 -0
  55. package/templates/starter/components.json +24 -0
  56. package/templates/starter/cucumber.mjs +16 -0
  57. package/templates/starter/eslint.config.mjs +20 -0
  58. package/templates/starter/gitignore +56 -0
  59. package/templates/starter/next-env.d.ts +6 -0
  60. package/templates/starter/next.config.ts +20 -0
  61. package/templates/starter/package-lock.json +15012 -0
  62. package/templates/starter/package.json +139 -0
  63. package/templates/starter/packages/cucumber-runtime/package.json +13 -0
  64. package/templates/starter/packages/cucumber-runtime/src/cache.util.ts +93 -0
  65. package/templates/starter/packages/cucumber-runtime/src/cli.ts +68 -0
  66. package/templates/starter/packages/cucumber-runtime/src/environment.util.ts +21 -0
  67. package/templates/starter/packages/cucumber-runtime/src/executor.ts +32 -0
  68. package/templates/starter/packages/cucumber-runtime/src/hooks.ts +106 -0
  69. package/templates/starter/packages/cucumber-runtime/src/index.ts +17 -0
  70. package/templates/starter/packages/cucumber-runtime/src/locator.util.ts +234 -0
  71. package/templates/starter/packages/cucumber-runtime/src/parameter-types.ts +7 -0
  72. package/templates/starter/packages/cucumber-runtime/src/paths.ts +98 -0
  73. package/templates/starter/packages/cucumber-runtime/src/random-data.util.ts +35 -0
  74. package/templates/starter/packages/cucumber-runtime/src/types.ts +13 -0
  75. package/templates/starter/packages/cucumber-runtime/src/world.ts +44 -0
  76. package/templates/starter/packages/cucumber-runtime/tsconfig.json +11 -0
  77. package/templates/starter/packages/locator-picker-companion/dist/cli.d.ts +1 -0
  78. package/templates/starter/packages/locator-picker-companion/dist/cli.js +302 -0
  79. package/templates/starter/packages/locator-picker-companion/dist/index.d.ts +3 -0
  80. package/templates/starter/packages/locator-picker-companion/dist/index.js +3 -0
  81. package/templates/starter/packages/locator-picker-companion/dist/injected-picker-script.d.ts +1 -0
  82. package/templates/starter/packages/locator-picker-companion/dist/injected-picker-script.js +615 -0
  83. package/templates/starter/packages/locator-picker-companion/dist/launcher.d.ts +11 -0
  84. package/templates/starter/packages/locator-picker-companion/dist/launcher.js +59 -0
  85. package/templates/starter/packages/locator-picker-companion/dist/selector-generator.d.ts +3 -0
  86. package/templates/starter/packages/locator-picker-companion/dist/selector-generator.js +257 -0
  87. package/templates/starter/packages/locator-picker-companion/dist/session-file.d.ts +22 -0
  88. package/templates/starter/packages/locator-picker-companion/dist/session-file.js +150 -0
  89. package/templates/starter/packages/locator-picker-companion/dist/types.d.ts +31 -0
  90. package/templates/starter/packages/locator-picker-companion/dist/types.js +1 -0
  91. package/templates/starter/packages/locator-picker-companion/package.json +17 -0
  92. package/templates/starter/packages/locator-picker-companion/src/cli.ts +428 -0
  93. package/templates/starter/packages/locator-picker-companion/src/index.ts +3 -0
  94. package/templates/starter/packages/locator-picker-companion/src/injected-picker-script.ts +771 -0
  95. package/templates/starter/packages/locator-picker-companion/src/launcher.ts +77 -0
  96. package/templates/starter/packages/locator-picker-companion/src/selector-generator.ts +339 -0
  97. package/templates/starter/packages/locator-picker-companion/src/session-file.ts +226 -0
  98. package/templates/starter/packages/locator-picker-companion/src/types.ts +42 -0
  99. package/templates/starter/packages/locator-picker-companion/tsconfig.json +14 -0
  100. package/templates/starter/postcss.config.mjs +8 -0
  101. package/templates/starter/prisma/dev.db +0 -0
  102. package/templates/starter/prisma/migrations/20251026202316_migrate_back_to_sqlite/migration.sql +257 -0
  103. package/templates/starter/prisma/migrations/20251104113456_add_type_for_template_step_groups/migration.sql +16 -0
  104. package/templates/starter/prisma/migrations/20251104170946_add_tags_to_test_suite_and_test_case/migration.sql +27 -0
  105. package/templates/starter/prisma/migrations/20251112190024_add_cascade_delete_to_test_run_test_case/migration.sql +17 -0
  106. package/templates/starter/prisma/migrations/20251113181100_add_test_run_log/migration.sql +12 -0
  107. package/templates/starter/prisma/migrations/20251119191838_add_tag_type/migration.sql +28 -0
  108. package/templates/starter/prisma/migrations/20251121164059_add_conflict_resolution/migration.sql +12 -0
  109. package/templates/starter/prisma/migrations/20251130190737_add_trace_path_to_test_run_test_case/migration.sql +2 -0
  110. package/templates/starter/prisma/migrations/20251213074835_add_log_path_to_test_run/migration.sql +2 -0
  111. package/templates/starter/prisma/migrations/20251213183952_add_name_property_for_the_test_run_entities/migration.sql +30 -0
  112. package/templates/starter/prisma/migrations/20251223183400_add_report_model_to_db_schema/migration.sql +10 -0
  113. package/templates/starter/prisma/migrations/20251223183637_add_report_test_case_entity_for_storing_test_results_for_individual_test_cases/migration.sql +10 -0
  114. package/templates/starter/prisma/migrations/20251224083549_add_comprehensive_report_storage/migration.sql +108 -0
  115. package/templates/starter/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql +55 -0
  116. package/templates/starter/prisma/migrations/20251230124637_add_unique_constraint_to_test_run_name/migration.sql +27 -0
  117. package/templates/starter/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql +59 -0
  118. package/templates/starter/prisma/migrations/20260127172022_add_cascade_delete_to_step_parameters/migration.sql +34 -0
  119. package/templates/starter/prisma/migrations/20260313093000_add_report_step_screenshot_path/migration.sql +1 -0
  120. package/templates/starter/prisma/migrations/20260318120000_add_test_suite_context_to_test_run_test_case/migration.sql +20 -0
  121. package/templates/starter/prisma/migrations/20260318173512_add_support_of_test_suite_level_runs/migration.sql +2 -0
  122. package/templates/starter/prisma/migrations/migration_lock.toml +3 -0
  123. package/templates/starter/prisma/schema.prisma +558 -0
  124. package/templates/starter/public/favicon.svg +8 -0
  125. package/templates/starter/public/file.svg +1 -0
  126. package/templates/starter/public/globe.svg +1 -0
  127. package/templates/starter/public/logo.svg +13 -0
  128. package/templates/starter/public/next.svg +1 -0
  129. package/templates/starter/public/vercel.svg +1 -0
  130. package/templates/starter/public/window.svg +1 -0
  131. package/templates/starter/scripts/build-step-registry.ts +33 -0
  132. package/templates/starter/scripts/install-playwright.ts +29 -0
  133. package/templates/starter/scripts/install-template-step.ts +128 -0
  134. package/templates/starter/scripts/lib/filename-utils.test.ts +24 -0
  135. package/templates/starter/scripts/lib/filename-utils.ts +24 -0
  136. package/templates/starter/scripts/lib/jsdoc-parser.test.ts +63 -0
  137. package/templates/starter/scripts/lib/jsdoc-parser.ts +88 -0
  138. package/templates/starter/scripts/lib/step-file-parser.test.ts +71 -0
  139. package/templates/starter/scripts/lib/step-file-parser.ts +315 -0
  140. package/templates/starter/scripts/lib/step-matcher.test.ts +86 -0
  141. package/templates/starter/scripts/lib/step-matcher.ts +120 -0
  142. package/templates/starter/scripts/lib/sync-script-runner.ts +23 -0
  143. package/templates/starter/scripts/lib/sync-summary.ts +29 -0
  144. package/templates/starter/scripts/lib/tag-parsing.test.ts +20 -0
  145. package/templates/starter/scripts/lib/tag-parsing.ts +10 -0
  146. package/templates/starter/scripts/lib/template-step-installer.test.ts +225 -0
  147. package/templates/starter/scripts/lib/template-step-installer.ts +404 -0
  148. package/templates/starter/scripts/lib/template-step-registry.test.ts +118 -0
  149. package/templates/starter/scripts/lib/template-step-registry.ts +137 -0
  150. package/templates/starter/scripts/protect-seeded-files.ts +51 -0
  151. package/templates/starter/scripts/regenerate-features.ts +98 -0
  152. package/templates/starter/scripts/run-vitest.ts +59 -0
  153. package/templates/starter/scripts/setup-env.ts +26 -0
  154. package/templates/starter/scripts/sync-all.ts +287 -0
  155. package/templates/starter/scripts/sync-appraise-base-template.ts +244 -0
  156. package/templates/starter/scripts/sync-environments.ts +305 -0
  157. package/templates/starter/scripts/sync-locator-groups.ts +358 -0
  158. package/templates/starter/scripts/sync-locators.ts +348 -0
  159. package/templates/starter/scripts/sync-modules.ts +302 -0
  160. package/templates/starter/scripts/sync-tags.ts +255 -0
  161. package/templates/starter/scripts/sync-template-step-groups.ts +247 -0
  162. package/templates/starter/scripts/sync-template-steps.ts +386 -0
  163. package/templates/starter/scripts/sync-test-cases.ts +717 -0
  164. package/templates/starter/scripts/sync-test-suites.ts +369 -0
  165. package/templates/starter/src/actions/dashboard/dashboard-actions.ts +70 -0
  166. package/templates/starter/src/actions/environments/environment-actions.ts +102 -0
  167. package/templates/starter/src/actions/locator/locator-actions.ts +77 -0
  168. package/templates/starter/src/actions/locator-groups/locator-group-actions.ts +115 -0
  169. package/templates/starter/src/actions/locator-picker/locator-picker-actions.test.ts +81 -0
  170. package/templates/starter/src/actions/locator-picker/locator-picker-actions.ts +102 -0
  171. package/templates/starter/src/actions/modules/module-actions.ts +99 -0
  172. package/templates/starter/src/actions/reports/report-actions.ts +79 -0
  173. package/templates/starter/src/actions/settings/sync-actions.test.ts +58 -0
  174. package/templates/starter/src/actions/settings/sync-actions.ts +46 -0
  175. package/templates/starter/src/actions/tags/tag-actions.ts +99 -0
  176. package/templates/starter/src/actions/template-step/template-step-actions.ts +114 -0
  177. package/templates/starter/src/actions/template-step-group/template-step-group-actions.ts +129 -0
  178. package/templates/starter/src/actions/template-test-case/template-test-case-actions.ts +98 -0
  179. package/templates/starter/src/actions/test-case/test-case-actions.ts +108 -0
  180. package/templates/starter/src/actions/test-run/test-run-actions.ts +269 -0
  181. package/templates/starter/src/actions/test-suite/test-suite-actions.ts +111 -0
  182. package/templates/starter/src/app/(base)/environments/create/page.tsx +28 -0
  183. package/templates/starter/src/app/(base)/environments/environment-form.test.tsx +92 -0
  184. package/templates/starter/src/app/(base)/environments/environment-form.tsx +228 -0
  185. package/templates/starter/src/app/(base)/environments/environment-helpers.ts +58 -0
  186. package/templates/starter/src/app/(base)/environments/environment-table-columns.tsx +96 -0
  187. package/templates/starter/src/app/(base)/environments/environment-table.tsx +25 -0
  188. package/templates/starter/src/app/(base)/environments/modify/[id]/page.tsx +49 -0
  189. package/templates/starter/src/app/(base)/environments/page.tsx +59 -0
  190. package/templates/starter/src/app/(base)/layout.tsx +10 -0
  191. package/templates/starter/src/app/(base)/locator-groups/create/page.tsx +44 -0
  192. package/templates/starter/src/app/(base)/locator-groups/locator-group-form.tsx +215 -0
  193. package/templates/starter/src/app/(base)/locator-groups/locator-group-table-columns.tsx +77 -0
  194. package/templates/starter/src/app/(base)/locator-groups/locator-group-table.tsx +28 -0
  195. package/templates/starter/src/app/(base)/locator-groups/modify/[id]/page.tsx +46 -0
  196. package/templates/starter/src/app/(base)/locator-groups/page.tsx +71 -0
  197. package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-helpers.test.ts +71 -0
  198. package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-helpers.ts +333 -0
  199. package/templates/starter/src/app/(base)/locators/create/create-locator-workspace.test.tsx +125 -0
  200. package/templates/starter/src/app/(base)/locators/create/create-locator-workspace.tsx +324 -0
  201. package/templates/starter/src/app/(base)/locators/create/page.tsx +55 -0
  202. package/templates/starter/src/app/(base)/locators/create/use-locator-workspace.ts +183 -0
  203. package/templates/starter/src/app/(base)/locators/locator-helpers.test.ts +28 -0
  204. package/templates/starter/src/app/(base)/locators/locator-helpers.ts +59 -0
  205. package/templates/starter/src/app/(base)/locators/locator-table-columns.tsx +74 -0
  206. package/templates/starter/src/app/(base)/locators/locator-table.tsx +30 -0
  207. package/templates/starter/src/app/(base)/locators/modify/[id]/page.tsx +86 -0
  208. package/templates/starter/src/app/(base)/locators/page.tsx +62 -0
  209. package/templates/starter/src/app/(base)/locators/picker/page.tsx +7 -0
  210. package/templates/starter/src/app/(base)/locators/sync-locators-button.tsx +67 -0
  211. package/templates/starter/src/app/(base)/modules/create/page.tsx +33 -0
  212. package/templates/starter/src/app/(base)/modules/modify/[id]/page.tsx +43 -0
  213. package/templates/starter/src/app/(base)/modules/module-form.test.tsx +84 -0
  214. package/templates/starter/src/app/(base)/modules/module-form.tsx +159 -0
  215. package/templates/starter/src/app/(base)/modules/module-helpers.ts +64 -0
  216. package/templates/starter/src/app/(base)/modules/module-table-columns.tsx +81 -0
  217. package/templates/starter/src/app/(base)/modules/module-table.tsx +25 -0
  218. package/templates/starter/src/app/(base)/modules/page.tsx +59 -0
  219. package/templates/starter/src/app/(base)/reports/[id]/page.tsx +284 -0
  220. package/templates/starter/src/app/(base)/reports/duration-chart.tsx +33 -0
  221. package/templates/starter/src/app/(base)/reports/feature-chart.tsx +79 -0
  222. package/templates/starter/src/app/(base)/reports/overview-chart.tsx +49 -0
  223. package/templates/starter/src/app/(base)/reports/page.tsx +98 -0
  224. package/templates/starter/src/app/(base)/reports/report-detail-helpers.test.ts +109 -0
  225. package/templates/starter/src/app/(base)/reports/report-detail-helpers.ts +247 -0
  226. package/templates/starter/src/app/(base)/reports/report-metric-card.tsx +78 -0
  227. package/templates/starter/src/app/(base)/reports/report-table-columns.tsx +189 -0
  228. package/templates/starter/src/app/(base)/reports/report-table.tsx +72 -0
  229. package/templates/starter/src/app/(base)/reports/report-view-table-columns.tsx +142 -0
  230. package/templates/starter/src/app/(base)/reports/report-view-table.tsx +83 -0
  231. package/templates/starter/src/app/(base)/reports/test-cases/page.tsx +40 -0
  232. package/templates/starter/src/app/(base)/reports/test-cases/test-cases-metric-table-columns.tsx +115 -0
  233. package/templates/starter/src/app/(base)/reports/test-cases/test-cases-metric-table.tsx +27 -0
  234. package/templates/starter/src/app/(base)/reports/test-suites/page.tsx +42 -0
  235. package/templates/starter/src/app/(base)/reports/test-suites/test-suites-metric-table-columns.tsx +79 -0
  236. package/templates/starter/src/app/(base)/reports/test-suites/test-suites-metric-table.tsx +27 -0
  237. package/templates/starter/src/app/(base)/reports/view-logs-button.tsx +58 -0
  238. package/templates/starter/src/app/(base)/settings/page.tsx +30 -0
  239. package/templates/starter/src/app/(base)/settings/settings-sync-panel-helpers.test.tsx +40 -0
  240. package/templates/starter/src/app/(base)/settings/settings-sync-panel-helpers.tsx +110 -0
  241. package/templates/starter/src/app/(base)/settings/settings-sync-panel.test.tsx +127 -0
  242. package/templates/starter/src/app/(base)/settings/settings-sync-panel.tsx +146 -0
  243. package/templates/starter/src/app/(base)/settings/use-settings-sync.ts +66 -0
  244. package/templates/starter/src/app/(base)/tags/create/page.tsx +39 -0
  245. package/templates/starter/src/app/(base)/tags/modify/[id]/page.tsx +50 -0
  246. package/templates/starter/src/app/(base)/tags/page.tsx +58 -0
  247. package/templates/starter/src/app/(base)/tags/tag-form-helpers.ts +13 -0
  248. package/templates/starter/src/app/(base)/tags/tag-form.test.tsx +83 -0
  249. package/templates/starter/src/app/(base)/tags/tag-form.tsx +143 -0
  250. package/templates/starter/src/app/(base)/tags/tag-table-columns.tsx +63 -0
  251. package/templates/starter/src/app/(base)/tags/tag-table.tsx +29 -0
  252. package/templates/starter/src/app/(base)/template-step-groups/create/page.tsx +28 -0
  253. package/templates/starter/src/app/(base)/template-step-groups/modify/[id]/page.tsx +43 -0
  254. package/templates/starter/src/app/(base)/template-step-groups/page.tsx +60 -0
  255. package/templates/starter/src/app/(base)/template-step-groups/template-step-group-form.test.tsx +82 -0
  256. package/templates/starter/src/app/(base)/template-step-groups/template-step-group-form.tsx +181 -0
  257. package/templates/starter/src/app/(base)/template-step-groups/template-step-group-helpers.ts +54 -0
  258. package/templates/starter/src/app/(base)/template-step-groups/template-step-group-table-columns.tsx +89 -0
  259. package/templates/starter/src/app/(base)/template-step-groups/template-step-group-table.tsx +34 -0
  260. package/templates/starter/src/app/(base)/template-steps/create/page.tsx +40 -0
  261. package/templates/starter/src/app/(base)/template-steps/modify/[id]/page.tsx +54 -0
  262. package/templates/starter/src/app/(base)/template-steps/page.tsx +59 -0
  263. package/templates/starter/src/app/(base)/template-steps/paramChip.tsx +233 -0
  264. package/templates/starter/src/app/(base)/template-steps/template-step-form.test.tsx +132 -0
  265. package/templates/starter/src/app/(base)/template-steps/template-step-form.tsx +342 -0
  266. package/templates/starter/src/app/(base)/template-steps/template-step-helpers.test.ts +99 -0
  267. package/templates/starter/src/app/(base)/template-steps/template-step-helpers.ts +176 -0
  268. package/templates/starter/src/app/(base)/template-steps/template-step-table-columns.tsx +153 -0
  269. package/templates/starter/src/app/(base)/template-steps/template-step-table.tsx +26 -0
  270. package/templates/starter/src/app/(base)/template-test-cases/create/page.tsx +56 -0
  271. package/templates/starter/src/app/(base)/template-test-cases/modify/[id]/page.tsx +89 -0
  272. package/templates/starter/src/app/(base)/template-test-cases/page.tsx +58 -0
  273. package/templates/starter/src/app/(base)/template-test-cases/template-test-case-flow.test.tsx +109 -0
  274. package/templates/starter/src/app/(base)/template-test-cases/template-test-case-flow.tsx +45 -0
  275. package/templates/starter/src/app/(base)/template-test-cases/template-test-case-form.test.tsx +140 -0
  276. package/templates/starter/src/app/(base)/template-test-cases/template-test-case-form.tsx +154 -0
  277. package/templates/starter/src/app/(base)/template-test-cases/template-test-case-table-columns.tsx +76 -0
  278. package/templates/starter/src/app/(base)/template-test-cases/template-test-case-table.tsx +32 -0
  279. package/templates/starter/src/app/(base)/test-cases/create/page.tsx +90 -0
  280. package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.test.ts +94 -0
  281. package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.ts +171 -0
  282. package/templates/starter/src/app/(base)/test-cases/create-from-template/generate/[id]/page.tsx +105 -0
  283. package/templates/starter/src/app/(base)/test-cases/create-from-template/page.tsx +40 -0
  284. package/templates/starter/src/app/(base)/test-cases/create-from-template/template-selection-form.test.tsx +87 -0
  285. package/templates/starter/src/app/(base)/test-cases/create-from-template/template-selection-form.tsx +83 -0
  286. package/templates/starter/src/app/(base)/test-cases/modify/[id]/page.tsx +106 -0
  287. package/templates/starter/src/app/(base)/test-cases/page.tsx +61 -0
  288. package/templates/starter/src/app/(base)/test-cases/test-case-flow.test.tsx +108 -0
  289. package/templates/starter/src/app/(base)/test-cases/test-case-flow.tsx +43 -0
  290. package/templates/starter/src/app/(base)/test-cases/test-case-form.test.tsx +202 -0
  291. package/templates/starter/src/app/(base)/test-cases/test-case-form.tsx +263 -0
  292. package/templates/starter/src/app/(base)/test-cases/test-case-route-helpers.test.ts +95 -0
  293. package/templates/starter/src/app/(base)/test-cases/test-case-route-helpers.ts +147 -0
  294. package/templates/starter/src/app/(base)/test-cases/test-case-table-columns.tsx +25 -0
  295. package/templates/starter/src/app/(base)/test-cases/test-case-table.tsx +37 -0
  296. package/templates/starter/src/app/(base)/test-runs/[id]/page.tsx +60 -0
  297. package/templates/starter/src/app/(base)/test-runs/create/page.tsx +48 -0
  298. package/templates/starter/src/app/(base)/test-runs/page.tsx +60 -0
  299. package/templates/starter/src/app/(base)/test-runs/test-run-form-helpers.test.ts +50 -0
  300. package/templates/starter/src/app/(base)/test-runs/test-run-form-helpers.ts +168 -0
  301. package/templates/starter/src/app/(base)/test-runs/test-run-form.test.tsx +138 -0
  302. package/templates/starter/src/app/(base)/test-runs/test-run-form.tsx +356 -0
  303. package/templates/starter/src/app/(base)/test-runs/test-run-table-columns.tsx +229 -0
  304. package/templates/starter/src/app/(base)/test-runs/test-run-table.tsx +127 -0
  305. package/templates/starter/src/app/(base)/test-runs/use-test-run-name-validation.ts +74 -0
  306. package/templates/starter/src/app/(base)/test-suites/create/page.tsx +51 -0
  307. package/templates/starter/src/app/(base)/test-suites/modify/[id]/page.tsx +59 -0
  308. package/templates/starter/src/app/(base)/test-suites/page.tsx +76 -0
  309. package/templates/starter/src/app/(base)/test-suites/test-suite-form.test.tsx +127 -0
  310. package/templates/starter/src/app/(base)/test-suites/test-suite-form.tsx +249 -0
  311. package/templates/starter/src/app/(base)/test-suites/test-suite-helpers.test.ts +67 -0
  312. package/templates/starter/src/app/(base)/test-suites/test-suite-helpers.ts +215 -0
  313. package/templates/starter/src/app/(base)/test-suites/test-suite-table-columns.tsx +98 -0
  314. package/templates/starter/src/app/(base)/test-suites/test-suite-table.tsx +32 -0
  315. package/templates/starter/src/app/(dashboard-components)/app-drawer.tsx +187 -0
  316. package/templates/starter/src/app/(dashboard-components)/data-card-grid.tsx +13 -0
  317. package/templates/starter/src/app/(dashboard-components)/data-card.tsx +27 -0
  318. package/templates/starter/src/app/(dashboard-components)/execution-health-panel.tsx +57 -0
  319. package/templates/starter/src/app/(dashboard-components)/ongoing-test-runs-card.tsx +87 -0
  320. package/templates/starter/src/app/(dashboard-components)/quick-actions-drawer.tsx +45 -0
  321. package/templates/starter/src/app/api/reports/steps/[stepId]/screenshot/route.test.ts +83 -0
  322. package/templates/starter/src/app/api/reports/steps/[stepId]/screenshot/route.ts +52 -0
  323. package/templates/starter/src/app/api/test-runs/[runId]/download/route.test.ts +169 -0
  324. package/templates/starter/src/app/api/test-runs/[runId]/download/route.ts +196 -0
  325. package/templates/starter/src/app/api/test-runs/[runId]/logs/route.ts +424 -0
  326. package/templates/starter/src/app/api/test-runs/[runId]/trace/[testCaseId]/route.test.ts +135 -0
  327. package/templates/starter/src/app/api/test-runs/[runId]/trace/[testCaseId]/route.ts +146 -0
  328. package/templates/starter/src/app/favicon.ico +0 -0
  329. package/templates/starter/src/app/globals.css +90 -0
  330. package/templates/starter/src/app/layout.tsx +207 -0
  331. package/templates/starter/src/app/page.tsx +65 -0
  332. package/templates/starter/src/assets/icons/empty-tube.tsx +23 -0
  333. package/templates/starter/src/assets/icons/tube-plus.tsx +29 -0
  334. package/templates/starter/src/components/base-node.tsx +21 -0
  335. package/templates/starter/src/components/chart/pie-chart.tsx +73 -0
  336. package/templates/starter/src/components/data-extraction/locator-inspector-helpers.test.ts +32 -0
  337. package/templates/starter/src/components/data-extraction/locator-inspector-helpers.ts +183 -0
  338. package/templates/starter/src/components/data-extraction/locator-inspector.tsx +349 -0
  339. package/templates/starter/src/components/data-state/empty-state.tsx +40 -0
  340. package/templates/starter/src/components/data-visualization/info-card.tsx +70 -0
  341. package/templates/starter/src/components/data-visualization/info-grid.tsx +22 -0
  342. package/templates/starter/src/components/diagram/button-edge.tsx +54 -0
  343. package/templates/starter/src/components/diagram/dynamic-parameters-helpers.test.ts +83 -0
  344. package/templates/starter/src/components/diagram/dynamic-parameters-helpers.ts +158 -0
  345. package/templates/starter/src/components/diagram/dynamic-parameters.tsx +350 -0
  346. package/templates/starter/src/components/diagram/edit-header-option.tsx +36 -0
  347. package/templates/starter/src/components/diagram/flow-diagram-helpers.test.ts +117 -0
  348. package/templates/starter/src/components/diagram/flow-diagram-helpers.ts +251 -0
  349. package/templates/starter/src/components/diagram/flow-diagram.tsx +247 -0
  350. package/templates/starter/src/components/diagram/flow-host-helpers.test.ts +74 -0
  351. package/templates/starter/src/components/diagram/flow-host-helpers.ts +51 -0
  352. package/templates/starter/src/components/diagram/node-form-helpers.test.ts +92 -0
  353. package/templates/starter/src/components/diagram/node-form-helpers.ts +100 -0
  354. package/templates/starter/src/components/diagram/node-form.test.tsx +168 -0
  355. package/templates/starter/src/components/diagram/node-form.tsx +199 -0
  356. package/templates/starter/src/components/diagram/options-header-node.tsx +57 -0
  357. package/templates/starter/src/components/diagram/template-step-combobox.tsx +155 -0
  358. package/templates/starter/src/components/diagram/use-flow-node-order.ts +49 -0
  359. package/templates/starter/src/components/form/error-message.tsx +7 -0
  360. package/templates/starter/src/components/kokonutui/smooth-tab.tsx +453 -0
  361. package/templates/starter/src/components/loading-skeleton/data-table/data-table-skeleton.tsx +30 -0
  362. package/templates/starter/src/components/loading-skeleton/form/button-skeleton.tsx +8 -0
  363. package/templates/starter/src/components/loading-skeleton/form/icon-button-skeleton.tsx +8 -0
  364. package/templates/starter/src/components/loading-skeleton/form/text-input-skeleton.tsx +8 -0
  365. package/templates/starter/src/components/loading-skeleton/visualization/table-skeleton.tsx +14 -0
  366. package/templates/starter/src/components/logo.tsx +15 -0
  367. package/templates/starter/src/components/navigation/command-badge.tsx +34 -0
  368. package/templates/starter/src/components/navigation/command-chain-input.tsx +51 -0
  369. package/templates/starter/src/components/navigation/entity-search-command.tsx +118 -0
  370. package/templates/starter/src/components/navigation/nav-card.tsx +31 -0
  371. package/templates/starter/src/components/navigation/nav-command-helpers.ts +122 -0
  372. package/templates/starter/src/components/navigation/nav-command-search.tsx +125 -0
  373. package/templates/starter/src/components/navigation/nav-command.test.tsx +106 -0
  374. package/templates/starter/src/components/navigation/nav-command.tsx +98 -0
  375. package/templates/starter/src/components/navigation/nav-link.tsx +60 -0
  376. package/templates/starter/src/components/navigation/nav-menu-card-deck.tsx +112 -0
  377. package/templates/starter/src/components/navigation/use-nav-command.ts +58 -0
  378. package/templates/starter/src/components/node-header.tsx +159 -0
  379. package/templates/starter/src/components/reports/test-case-logs-modal.tsx +310 -0
  380. package/templates/starter/src/components/table/table-actions.tsx +174 -0
  381. package/templates/starter/src/components/test-case/test-case-columns.tsx +76 -0
  382. package/templates/starter/src/components/test-case/test-case-form-helpers.test.ts +100 -0
  383. package/templates/starter/src/components/test-case/test-case-form-helpers.ts +140 -0
  384. package/templates/starter/src/components/test-case/test-case-picker-helpers.test.ts +40 -0
  385. package/templates/starter/src/components/test-case/test-case-picker-helpers.ts +41 -0
  386. package/templates/starter/src/components/test-case/test-case-picker.test.tsx +44 -0
  387. package/templates/starter/src/components/test-case/test-case-picker.tsx +225 -0
  388. package/templates/starter/src/components/test-case/test-scenario-preview.tsx +34 -0
  389. package/templates/starter/src/components/test-run/download-logs-button.tsx +92 -0
  390. package/templates/starter/src/components/test-run/log-viewer-helpers.test.ts +37 -0
  391. package/templates/starter/src/components/test-run/log-viewer-helpers.ts +80 -0
  392. package/templates/starter/src/components/test-run/log-viewer.test.tsx +118 -0
  393. package/templates/starter/src/components/test-run/log-viewer.tsx +133 -0
  394. package/templates/starter/src/components/test-run/test-run-details-helpers.test.ts +31 -0
  395. package/templates/starter/src/components/test-run/test-run-details-helpers.ts +208 -0
  396. package/templates/starter/src/components/test-run/test-run-details.test.tsx +174 -0
  397. package/templates/starter/src/components/test-run/test-run-details.tsx +322 -0
  398. package/templates/starter/src/components/test-run/test-run-header-helpers.test.ts +31 -0
  399. package/templates/starter/src/components/test-run/test-run-header-helpers.ts +23 -0
  400. package/templates/starter/src/components/test-run/test-run-header.test.tsx +103 -0
  401. package/templates/starter/src/components/test-run/test-run-header.tsx +27 -0
  402. package/templates/starter/src/components/test-run/use-log-viewer.ts +213 -0
  403. package/templates/starter/src/components/test-run/use-test-run-details.ts +184 -0
  404. package/templates/starter/src/components/test-run/use-test-run-header.ts +89 -0
  405. package/templates/starter/src/components/test-run/view-report-button.tsx +102 -0
  406. package/templates/starter/src/components/test-suite/test-suite-picker-helpers.test.ts +68 -0
  407. package/templates/starter/src/components/test-suite/test-suite-picker-helpers.ts +76 -0
  408. package/templates/starter/src/components/test-suite/test-suite-picker.test.tsx +65 -0
  409. package/templates/starter/src/components/test-suite/test-suite-picker.tsx +376 -0
  410. package/templates/starter/src/components/theme/theme-provider.tsx +16 -0
  411. package/templates/starter/src/components/typography/page-header-subtitle.tsx +7 -0
  412. package/templates/starter/src/components/typography/page-header.tsx +7 -0
  413. package/templates/starter/src/components/ui/alert-dialog.tsx +106 -0
  414. package/templates/starter/src/components/ui/alert.tsx +43 -0
  415. package/templates/starter/src/components/ui/avatar.tsx +40 -0
  416. package/templates/starter/src/components/ui/badge.tsx +29 -0
  417. package/templates/starter/src/components/ui/button.tsx +47 -0
  418. package/templates/starter/src/components/ui/calendar.tsx +158 -0
  419. package/templates/starter/src/components/ui/card.tsx +43 -0
  420. package/templates/starter/src/components/ui/chart.tsx +369 -0
  421. package/templates/starter/src/components/ui/checkbox.tsx +28 -0
  422. package/templates/starter/src/components/ui/command.tsx +135 -0
  423. package/templates/starter/src/components/ui/data-table-column-header.tsx +61 -0
  424. package/templates/starter/src/components/ui/data-table-pagination.tsx +87 -0
  425. package/templates/starter/src/components/ui/data-table-view-options.tsx +50 -0
  426. package/templates/starter/src/components/ui/data-table.test.tsx +122 -0
  427. package/templates/starter/src/components/ui/data-table.tsx +298 -0
  428. package/templates/starter/src/components/ui/dialog.tsx +97 -0
  429. package/templates/starter/src/components/ui/dropdown-menu.tsx +182 -0
  430. package/templates/starter/src/components/ui/empty.tsx +104 -0
  431. package/templates/starter/src/components/ui/input.tsx +22 -0
  432. package/templates/starter/src/components/ui/kbd.tsx +28 -0
  433. package/templates/starter/src/components/ui/label.tsx +19 -0
  434. package/templates/starter/src/components/ui/loading.tsx +12 -0
  435. package/templates/starter/src/components/ui/multi-select-with-preview.tsx +116 -0
  436. package/templates/starter/src/components/ui/multi-select.test.tsx +45 -0
  437. package/templates/starter/src/components/ui/multi-select.tsx +158 -0
  438. package/templates/starter/src/components/ui/navigation-menu.tsx +120 -0
  439. package/templates/starter/src/components/ui/popover.tsx +33 -0
  440. package/templates/starter/src/components/ui/progress.tsx +25 -0
  441. package/templates/starter/src/components/ui/radio-group.tsx +44 -0
  442. package/templates/starter/src/components/ui/scroll-area.tsx +40 -0
  443. package/templates/starter/src/components/ui/select.tsx +151 -0
  444. package/templates/starter/src/components/ui/separator.tsx +22 -0
  445. package/templates/starter/src/components/ui/skeleton.tsx +7 -0
  446. package/templates/starter/src/components/ui/table.tsx +76 -0
  447. package/templates/starter/src/components/ui/tabs.tsx +55 -0
  448. package/templates/starter/src/components/ui/textarea.tsx +21 -0
  449. package/templates/starter/src/components/ui/toast.tsx +113 -0
  450. package/templates/starter/src/components/ui/toaster.tsx +26 -0
  451. package/templates/starter/src/components/ui/tooltip.tsx +32 -0
  452. package/templates/starter/src/components/user-prompt/delete-prompt.test.tsx +60 -0
  453. package/templates/starter/src/components/user-prompt/delete-prompt.tsx +118 -0
  454. package/templates/starter/src/config/db-config.ts +71 -0
  455. package/templates/starter/src/constants/form-opts/diagram/node-form.ts +30 -0
  456. package/templates/starter/src/constants/form-opts/environment-form-opts.ts +24 -0
  457. package/templates/starter/src/constants/form-opts/locator-group-form-opts.ts +28 -0
  458. package/templates/starter/src/constants/form-opts/module-form-opts.ts +21 -0
  459. package/templates/starter/src/constants/form-opts/tag-form-opts.ts +42 -0
  460. package/templates/starter/src/constants/form-opts/template-selection-form-opts.ts +16 -0
  461. package/templates/starter/src/constants/form-opts/template-step-group-form-opts.ts +24 -0
  462. package/templates/starter/src/constants/form-opts/template-test-case-form-opts.ts +39 -0
  463. package/templates/starter/src/constants/form-opts/template-test-step-form-opts.ts +36 -0
  464. package/templates/starter/src/constants/form-opts/test-case-form-opts.ts +43 -0
  465. package/templates/starter/src/constants/form-opts/test-run-form-opts.ts +33 -0
  466. package/templates/starter/src/constants/form-opts/test-suite-form-opts.ts +24 -0
  467. package/templates/starter/src/hooks/use-toast.ts +187 -0
  468. package/templates/starter/src/lib/automation/automation-path-roots.ts +95 -0
  469. package/templates/starter/src/lib/automation/automation-workspace.ts +147 -0
  470. package/templates/starter/src/lib/automation/paths.ts +6 -0
  471. package/templates/starter/src/lib/automation/projection-service.ts +226 -0
  472. package/templates/starter/src/lib/bidirectional-sync.ts +432 -0
  473. package/templates/starter/src/lib/database-sync.ts +526 -0
  474. package/templates/starter/src/lib/environment-file-utils.ts +181 -0
  475. package/templates/starter/src/lib/executor/local-executor-adapter.ts +97 -0
  476. package/templates/starter/src/lib/executor/types.ts +24 -0
  477. package/templates/starter/src/lib/feature-file-generator.ts +261 -0
  478. package/templates/starter/src/lib/gherkin-parser.test.ts +44 -0
  479. package/templates/starter/src/lib/gherkin-parser.ts +251 -0
  480. package/templates/starter/src/lib/locator-group-file-utils.ts +304 -0
  481. package/templates/starter/src/lib/locator-picker/session-manager.ts +431 -0
  482. package/templates/starter/src/lib/locator-picker/suggestions.ts +126 -0
  483. package/templates/starter/src/lib/metrics/metric-calculator.ts +614 -0
  484. package/templates/starter/src/lib/module-hierarchy-builder.ts +205 -0
  485. package/templates/starter/src/lib/path-helpers/module-path.ts +71 -0
  486. package/templates/starter/src/lib/process/task-spawner.ts +273 -0
  487. package/templates/starter/src/lib/sync/projected-feature-utils.ts +113 -0
  488. package/templates/starter/src/lib/sync/sync-executor.test.ts +76 -0
  489. package/templates/starter/src/lib/sync/sync-executor.ts +130 -0
  490. package/templates/starter/src/lib/sync/sync-pending-counts.test.ts +264 -0
  491. package/templates/starter/src/lib/sync/sync-pending-counts.ts +1356 -0
  492. package/templates/starter/src/lib/sync/sync-registry.ts +149 -0
  493. package/templates/starter/src/lib/tag-utils.ts +28 -0
  494. package/templates/starter/src/lib/template-sync-utils.d.ts +7 -0
  495. package/templates/starter/src/lib/template-sync-utils.d.ts.map +1 -0
  496. package/templates/starter/src/lib/template-sync-utils.js +50 -0
  497. package/templates/starter/src/lib/template-sync-utils.js.map +1 -0
  498. package/templates/starter/src/lib/template-sync-utils.ts +65 -0
  499. package/templates/starter/src/lib/test-case-utils.ts +6 -0
  500. package/templates/starter/src/lib/test-run/log-formatter.ts +83 -0
  501. package/templates/starter/src/lib/test-run/matching.ts +117 -0
  502. package/templates/starter/src/lib/test-run/process-manager.ts +115 -0
  503. package/templates/starter/src/lib/test-run/report-parser.ts +352 -0
  504. package/templates/starter/src/lib/test-run/test-run-executor.ts +13 -0
  505. package/templates/starter/src/lib/test-run/winston-logger.ts +65 -0
  506. package/templates/starter/src/lib/test-suite-identifier-service.ts +76 -0
  507. package/templates/starter/src/lib/test-suite-utils.ts +6 -0
  508. package/templates/starter/src/lib/transformers/gherkin-converter.ts +42 -0
  509. package/templates/starter/src/lib/transformers/key-to-icon-transformer.tsx +95 -0
  510. package/templates/starter/src/lib/transformers/template-test-case-converter.ts +160 -0
  511. package/templates/starter/src/lib/utils/node-param-validation.ts +81 -0
  512. package/templates/starter/src/lib/utils/template-step-file-generator.ts +128 -0
  513. package/templates/starter/src/lib/utils/template-step-file-manager-intelligent.ts +700 -0
  514. package/templates/starter/src/lib/utils/template-step-file-manager.ts +166 -0
  515. package/templates/starter/src/lib/utils.ts +31 -0
  516. package/templates/starter/src/services/dashboard/dashboard-service.test.ts +106 -0
  517. package/templates/starter/src/services/dashboard/dashboard-service.ts +173 -0
  518. package/templates/starter/src/services/environment/environment-service.test.ts +137 -0
  519. package/templates/starter/src/services/environment/environment-service.ts +96 -0
  520. package/templates/starter/src/services/locator/locator-path-utils.test.ts +14 -0
  521. package/templates/starter/src/services/locator/locator-path-utils.ts +14 -0
  522. package/templates/starter/src/services/locator/locator-service.test.ts +63 -0
  523. package/templates/starter/src/services/locator/locator-service.ts +479 -0
  524. package/templates/starter/src/services/locator/locator-sync-utils.test.ts +19 -0
  525. package/templates/starter/src/services/locator/locator-sync-utils.ts +21 -0
  526. package/templates/starter/src/services/locator-group/locator-group-service.test.ts +123 -0
  527. package/templates/starter/src/services/locator-group/locator-group-service.ts +180 -0
  528. package/templates/starter/src/services/module/module-service.test.ts +89 -0
  529. package/templates/starter/src/services/module/module-service.ts +66 -0
  530. package/templates/starter/src/services/report/report-service.test.ts +244 -0
  531. package/templates/starter/src/services/report/report-service.ts +438 -0
  532. package/templates/starter/src/services/shared/constants.ts +2 -0
  533. package/templates/starter/src/services/shared/errors.test.ts +38 -0
  534. package/templates/starter/src/services/shared/errors.ts +44 -0
  535. package/templates/starter/src/services/shared/index.ts +7 -0
  536. package/templates/starter/src/services/tag/tag-service.test.ts +22 -0
  537. package/templates/starter/src/services/tag/tag-service.ts +41 -0
  538. package/templates/starter/src/services/template-step/template-step-service.test.ts +22 -0
  539. package/templates/starter/src/services/template-step/template-step-service.ts +171 -0
  540. package/templates/starter/src/services/template-step-group/template-step-group-service.test.ts +22 -0
  541. package/templates/starter/src/services/template-step-group/template-step-group-service.ts +81 -0
  542. package/templates/starter/src/services/template-test-case/template-test-case-service.test.ts +22 -0
  543. package/templates/starter/src/services/template-test-case/template-test-case-service.ts +128 -0
  544. package/templates/starter/src/services/test-case/test-case-service.test.ts +175 -0
  545. package/templates/starter/src/services/test-case/test-case-service.ts +298 -0
  546. package/templates/starter/src/services/test-run/test-run-helpers.ts +61 -0
  547. package/templates/starter/src/services/test-run/test-run-service.test.ts +647 -0
  548. package/templates/starter/src/services/test-run/test-run-service.ts +917 -0
  549. package/templates/starter/src/services/test-suite/test-suite-service.test.ts +127 -0
  550. package/templates/starter/src/services/test-suite/test-suite-service.ts +197 -0
  551. package/templates/starter/src/types/diagram/diagram.ts +34 -0
  552. package/templates/starter/src/types/diagram/template-step.ts +11 -0
  553. package/templates/starter/src/types/executor/browser.type.ts +1 -0
  554. package/templates/starter/src/types/form/actionHandler.ts +19 -0
  555. package/templates/starter/src/types/locator/locator.type.ts +11 -0
  556. package/templates/starter/src/types/locator-picker.ts +65 -0
  557. package/templates/starter/src/types/step/step.type.ts +1 -0
  558. package/templates/starter/src/types/table/data-table.ts +6 -0
  559. package/templates/starter/src/types/test-case-picker.ts +6 -0
  560. package/templates/starter/src/types/test-suite-picker.ts +18 -0
  561. package/templates/starter/tailwind.config.ts +62 -0
  562. package/templates/starter/tsconfig.json +31 -0
  563. package/templates/default/.appraise-template-meta.json +0 -5
  564. package/templates/default/package-lock.json +0 -14957
  565. package/templates/default/package.json +0 -139
  566. package/templates/default/prisma/dev.db +0 -0
  567. package/templates/default/public/favicon.svg +0 -11
  568. package/templates/default/public/logo.svg +0 -18
  569. package/templates/default/scripts/sync-appraise-base-template.ts +0 -244
  570. package/templates/default/scripts/sync-template-step-groups.ts +0 -248
  571. package/templates/default/src/app/globals.css +0 -147
  572. package/templates/default/src/app/layout.tsx +0 -212
  573. package/templates/default/src/components/theme/mode-toggle.tsx +0 -54
  574. package/templates/default/src/components/theme/theme-provider.tsx +0 -8
  575. package/templates/default/src/lib/template-sync-utils.js +0 -47
  576. package/templates/default/src/lib/template-sync-utils.ts +0 -63
  577. package/templates/default/tsconfig.json +0 -31
  578. /package/templates/{default → blank}/.env.example +0 -0
  579. /package/templates/{default → blank}/.vscode/settings.json +0 -0
  580. /package/templates/{default → blank}/README.md +0 -0
  581. /package/templates/{default → blank}/automation/config/environments/environments.json +0 -0
  582. /package/templates/{default → blank}/automation/mapping/locator-map.json +0 -0
  583. /package/templates/{default → blank}/components.json +0 -0
  584. /package/templates/{default → blank}/cucumber.mjs +0 -0
  585. /package/templates/{default → blank}/eslint.config.mjs +0 -0
  586. /package/templates/{default → blank}/gitignore +0 -0
  587. /package/templates/{default → blank}/next-env.d.ts +0 -0
  588. /package/templates/{default → blank}/next.config.ts +0 -0
  589. /package/templates/{default → blank}/packages/cucumber-runtime/package.json +0 -0
  590. /package/templates/{default → blank}/packages/cucumber-runtime/src/cache.util.ts +0 -0
  591. /package/templates/{default → blank}/packages/cucumber-runtime/src/cli.ts +0 -0
  592. /package/templates/{default → blank}/packages/cucumber-runtime/src/environment.util.ts +0 -0
  593. /package/templates/{default → blank}/packages/cucumber-runtime/src/executor.ts +0 -0
  594. /package/templates/{default → blank}/packages/cucumber-runtime/src/hooks.ts +0 -0
  595. /package/templates/{default → blank}/packages/cucumber-runtime/src/index.ts +0 -0
  596. /package/templates/{default → blank}/packages/cucumber-runtime/src/locator.util.ts +0 -0
  597. /package/templates/{default → blank}/packages/cucumber-runtime/src/parameter-types.ts +0 -0
  598. /package/templates/{default → blank}/packages/cucumber-runtime/src/paths.ts +0 -0
  599. /package/templates/{default → blank}/packages/cucumber-runtime/src/random-data.util.ts +0 -0
  600. /package/templates/{default → blank}/packages/cucumber-runtime/src/types.ts +0 -0
  601. /package/templates/{default → blank}/packages/cucumber-runtime/src/world.ts +0 -0
  602. /package/templates/{default → blank}/packages/cucumber-runtime/tsconfig.json +0 -0
  603. /package/templates/{default → blank}/packages/locator-picker-companion/dist/cli.d.ts +0 -0
  604. /package/templates/{default → blank}/packages/locator-picker-companion/dist/cli.js +0 -0
  605. /package/templates/{default → blank}/packages/locator-picker-companion/dist/index.d.ts +0 -0
  606. /package/templates/{default → blank}/packages/locator-picker-companion/dist/index.js +0 -0
  607. /package/templates/{default → blank}/packages/locator-picker-companion/dist/injected-picker-script.d.ts +0 -0
  608. /package/templates/{default → blank}/packages/locator-picker-companion/dist/injected-picker-script.js +0 -0
  609. /package/templates/{default → blank}/packages/locator-picker-companion/dist/launcher.d.ts +0 -0
  610. /package/templates/{default → blank}/packages/locator-picker-companion/dist/launcher.js +0 -0
  611. /package/templates/{default → blank}/packages/locator-picker-companion/dist/selector-generator.d.ts +0 -0
  612. /package/templates/{default → blank}/packages/locator-picker-companion/dist/selector-generator.js +0 -0
  613. /package/templates/{default → blank}/packages/locator-picker-companion/dist/session-file.d.ts +0 -0
  614. /package/templates/{default → blank}/packages/locator-picker-companion/dist/session-file.js +0 -0
  615. /package/templates/{default → blank}/packages/locator-picker-companion/dist/types.d.ts +0 -0
  616. /package/templates/{default → blank}/packages/locator-picker-companion/dist/types.js +0 -0
  617. /package/templates/{default → blank}/packages/locator-picker-companion/package.json +0 -0
  618. /package/templates/{default → blank}/packages/locator-picker-companion/src/cli.ts +0 -0
  619. /package/templates/{default → blank}/packages/locator-picker-companion/src/index.ts +0 -0
  620. /package/templates/{default → blank}/packages/locator-picker-companion/src/injected-picker-script.ts +0 -0
  621. /package/templates/{default → blank}/packages/locator-picker-companion/src/launcher.ts +0 -0
  622. /package/templates/{default → blank}/packages/locator-picker-companion/src/selector-generator.ts +0 -0
  623. /package/templates/{default → blank}/packages/locator-picker-companion/src/session-file.ts +0 -0
  624. /package/templates/{default → blank}/packages/locator-picker-companion/src/types.ts +0 -0
  625. /package/templates/{default → blank}/packages/locator-picker-companion/tsconfig.json +0 -0
  626. /package/templates/{default → blank}/postcss.config.mjs +0 -0
  627. /package/templates/{default → blank}/prisma/migrations/20251026202316_migrate_back_to_sqlite/migration.sql +0 -0
  628. /package/templates/{default → blank}/prisma/migrations/20251104113456_add_type_for_template_step_groups/migration.sql +0 -0
  629. /package/templates/{default → blank}/prisma/migrations/20251104170946_add_tags_to_test_suite_and_test_case/migration.sql +0 -0
  630. /package/templates/{default → blank}/prisma/migrations/20251112190024_add_cascade_delete_to_test_run_test_case/migration.sql +0 -0
  631. /package/templates/{default → blank}/prisma/migrations/20251113181100_add_test_run_log/migration.sql +0 -0
  632. /package/templates/{default → blank}/prisma/migrations/20251119191838_add_tag_type/migration.sql +0 -0
  633. /package/templates/{default → blank}/prisma/migrations/20251121164059_add_conflict_resolution/migration.sql +0 -0
  634. /package/templates/{default → blank}/prisma/migrations/20251130190737_add_trace_path_to_test_run_test_case/migration.sql +0 -0
  635. /package/templates/{default → blank}/prisma/migrations/20251213074835_add_log_path_to_test_run/migration.sql +0 -0
  636. /package/templates/{default → blank}/prisma/migrations/20251213183952_add_name_property_for_the_test_run_entities/migration.sql +0 -0
  637. /package/templates/{default → blank}/prisma/migrations/20251223183400_add_report_model_to_db_schema/migration.sql +0 -0
  638. /package/templates/{default → blank}/prisma/migrations/20251223183637_add_report_test_case_entity_for_storing_test_results_for_individual_test_cases/migration.sql +0 -0
  639. /package/templates/{default → blank}/prisma/migrations/20251224083549_add_comprehensive_report_storage/migration.sql +0 -0
  640. /package/templates/{default → blank}/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql +0 -0
  641. /package/templates/{default → blank}/prisma/migrations/20251230124637_add_unique_constraint_to_test_run_name/migration.sql +0 -0
  642. /package/templates/{default → blank}/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql +0 -0
  643. /package/templates/{default → blank}/prisma/migrations/20260127172022_add_cascade_delete_to_step_parameters/migration.sql +0 -0
  644. /package/templates/{default → blank}/prisma/migrations/20260313093000_add_report_step_screenshot_path/migration.sql +0 -0
  645. /package/templates/{default → blank}/prisma/migrations/20260318120000_add_test_suite_context_to_test_run_test_case/migration.sql +0 -0
  646. /package/templates/{default → blank}/prisma/migrations/20260318173512_add_support_of_test_suite_level_runs/migration.sql +0 -0
  647. /package/templates/{default → blank}/prisma/migrations/migration_lock.toml +0 -0
  648. /package/templates/{default → blank}/prisma/schema.prisma +0 -0
  649. /package/templates/{default → blank}/public/file.svg +0 -0
  650. /package/templates/{default → blank}/public/globe.svg +0 -0
  651. /package/templates/{default → blank}/public/next.svg +0 -0
  652. /package/templates/{default → blank}/public/vercel.svg +0 -0
  653. /package/templates/{default → blank}/public/window.svg +0 -0
  654. /package/templates/{default → blank}/scripts/build-step-registry.ts +0 -0
  655. /package/templates/{default → blank}/scripts/install-playwright.ts +0 -0
  656. /package/templates/{default → blank}/scripts/install-template-step.ts +0 -0
  657. /package/templates/{default → blank}/scripts/lib/filename-utils.test.ts +0 -0
  658. /package/templates/{default → blank}/scripts/lib/filename-utils.ts +0 -0
  659. /package/templates/{default → blank}/scripts/lib/jsdoc-parser.test.ts +0 -0
  660. /package/templates/{default → blank}/scripts/lib/jsdoc-parser.ts +0 -0
  661. /package/templates/{default → blank}/scripts/lib/step-file-parser.test.ts +0 -0
  662. /package/templates/{default → blank}/scripts/lib/step-file-parser.ts +0 -0
  663. /package/templates/{default → blank}/scripts/lib/step-matcher.test.ts +0 -0
  664. /package/templates/{default → blank}/scripts/lib/step-matcher.ts +0 -0
  665. /package/templates/{default → blank}/scripts/lib/sync-script-runner.ts +0 -0
  666. /package/templates/{default → blank}/scripts/lib/sync-summary.ts +0 -0
  667. /package/templates/{default → blank}/scripts/lib/tag-parsing.test.ts +0 -0
  668. /package/templates/{default → blank}/scripts/lib/tag-parsing.ts +0 -0
  669. /package/templates/{default → blank}/scripts/lib/template-step-installer.test.ts +0 -0
  670. /package/templates/{default → blank}/scripts/lib/template-step-installer.ts +0 -0
  671. /package/templates/{default → blank}/scripts/lib/template-step-registry.test.ts +0 -0
  672. /package/templates/{default → blank}/scripts/lib/template-step-registry.ts +0 -0
  673. /package/templates/{default → blank}/scripts/protect-seeded-files.ts +0 -0
  674. /package/templates/{default → blank}/scripts/regenerate-features.ts +0 -0
  675. /package/templates/{default → blank}/scripts/run-vitest.ts +0 -0
  676. /package/templates/{default → blank}/scripts/setup-env.ts +0 -0
  677. /package/templates/{default → blank}/scripts/sync-all.ts +0 -0
  678. /package/templates/{default → blank}/scripts/sync-environments.ts +0 -0
  679. /package/templates/{default → blank}/scripts/sync-locator-groups.ts +0 -0
  680. /package/templates/{default → blank}/scripts/sync-locators.ts +0 -0
  681. /package/templates/{default → blank}/scripts/sync-modules.ts +0 -0
  682. /package/templates/{default → blank}/scripts/sync-tags.ts +0 -0
  683. /package/templates/{default → blank}/scripts/sync-template-steps.ts +0 -0
  684. /package/templates/{default → blank}/scripts/sync-test-cases.ts +0 -0
  685. /package/templates/{default → blank}/scripts/sync-test-suites.ts +0 -0
  686. /package/templates/{default → blank}/src/actions/dashboard/dashboard-actions.ts +0 -0
  687. /package/templates/{default → blank}/src/actions/environments/environment-actions.ts +0 -0
  688. /package/templates/{default → blank}/src/actions/locator/locator-actions.ts +0 -0
  689. /package/templates/{default → blank}/src/actions/locator-groups/locator-group-actions.ts +0 -0
  690. /package/templates/{default → blank}/src/actions/locator-picker/locator-picker-actions.test.ts +0 -0
  691. /package/templates/{default → blank}/src/actions/locator-picker/locator-picker-actions.ts +0 -0
  692. /package/templates/{default → blank}/src/actions/modules/module-actions.ts +0 -0
  693. /package/templates/{default → blank}/src/actions/reports/report-actions.ts +0 -0
  694. /package/templates/{default → blank}/src/actions/settings/sync-actions.test.ts +0 -0
  695. /package/templates/{default → blank}/src/actions/settings/sync-actions.ts +0 -0
  696. /package/templates/{default → blank}/src/actions/tags/tag-actions.ts +0 -0
  697. /package/templates/{default → blank}/src/actions/template-step/template-step-actions.ts +0 -0
  698. /package/templates/{default → blank}/src/actions/template-step-group/template-step-group-actions.ts +0 -0
  699. /package/templates/{default → blank}/src/actions/template-test-case/template-test-case-actions.ts +0 -0
  700. /package/templates/{default → blank}/src/actions/test-case/test-case-actions.ts +0 -0
  701. /package/templates/{default → blank}/src/actions/test-run/test-run-actions.ts +0 -0
  702. /package/templates/{default → blank}/src/actions/test-suite/test-suite-actions.ts +0 -0
  703. /package/templates/{default → blank}/src/app/(base)/environments/create/page.tsx +0 -0
  704. /package/templates/{default → blank}/src/app/(base)/environments/environment-form.test.tsx +0 -0
  705. /package/templates/{default → blank}/src/app/(base)/environments/environment-form.tsx +0 -0
  706. /package/templates/{default → blank}/src/app/(base)/environments/environment-helpers.ts +0 -0
  707. /package/templates/{default → blank}/src/app/(base)/environments/environment-table-columns.tsx +0 -0
  708. /package/templates/{default → blank}/src/app/(base)/environments/environment-table.tsx +0 -0
  709. /package/templates/{default → blank}/src/app/(base)/environments/modify/[id]/page.tsx +0 -0
  710. /package/templates/{default → blank}/src/app/(base)/environments/page.tsx +0 -0
  711. /package/templates/{default → blank}/src/app/(base)/layout.tsx +0 -0
  712. /package/templates/{default → blank}/src/app/(base)/locator-groups/create/page.tsx +0 -0
  713. /package/templates/{default → blank}/src/app/(base)/locator-groups/locator-group-form.tsx +0 -0
  714. /package/templates/{default → blank}/src/app/(base)/locator-groups/locator-group-table-columns.tsx +0 -0
  715. /package/templates/{default → blank}/src/app/(base)/locator-groups/locator-group-table.tsx +0 -0
  716. /package/templates/{default → blank}/src/app/(base)/locator-groups/modify/[id]/page.tsx +0 -0
  717. /package/templates/{default → blank}/src/app/(base)/locator-groups/page.tsx +0 -0
  718. /package/templates/{default → blank}/src/app/(base)/locators/create/create-locator-workspace-helpers.test.ts +0 -0
  719. /package/templates/{default → blank}/src/app/(base)/locators/create/create-locator-workspace-helpers.ts +0 -0
  720. /package/templates/{default → blank}/src/app/(base)/locators/create/create-locator-workspace.test.tsx +0 -0
  721. /package/templates/{default → blank}/src/app/(base)/locators/create/create-locator-workspace.tsx +0 -0
  722. /package/templates/{default → blank}/src/app/(base)/locators/create/page.tsx +0 -0
  723. /package/templates/{default → blank}/src/app/(base)/locators/create/use-locator-workspace.ts +0 -0
  724. /package/templates/{default → blank}/src/app/(base)/locators/locator-helpers.test.ts +0 -0
  725. /package/templates/{default → blank}/src/app/(base)/locators/locator-helpers.ts +0 -0
  726. /package/templates/{default → blank}/src/app/(base)/locators/locator-table-columns.tsx +0 -0
  727. /package/templates/{default → blank}/src/app/(base)/locators/locator-table.tsx +0 -0
  728. /package/templates/{default → blank}/src/app/(base)/locators/modify/[id]/page.tsx +0 -0
  729. /package/templates/{default → blank}/src/app/(base)/locators/page.tsx +0 -0
  730. /package/templates/{default → blank}/src/app/(base)/locators/picker/page.tsx +0 -0
  731. /package/templates/{default → blank}/src/app/(base)/locators/sync-locators-button.tsx +0 -0
  732. /package/templates/{default → blank}/src/app/(base)/modules/create/page.tsx +0 -0
  733. /package/templates/{default → blank}/src/app/(base)/modules/modify/[id]/page.tsx +0 -0
  734. /package/templates/{default → blank}/src/app/(base)/modules/module-form.test.tsx +0 -0
  735. /package/templates/{default → blank}/src/app/(base)/modules/module-form.tsx +0 -0
  736. /package/templates/{default → blank}/src/app/(base)/modules/module-helpers.ts +0 -0
  737. /package/templates/{default → blank}/src/app/(base)/modules/module-table-columns.tsx +0 -0
  738. /package/templates/{default → blank}/src/app/(base)/modules/module-table.tsx +0 -0
  739. /package/templates/{default → blank}/src/app/(base)/modules/page.tsx +0 -0
  740. /package/templates/{default → blank}/src/app/(base)/reports/[id]/page.tsx +0 -0
  741. /package/templates/{default → blank}/src/app/(base)/reports/duration-chart.tsx +0 -0
  742. /package/templates/{default → blank}/src/app/(base)/reports/feature-chart.tsx +0 -0
  743. /package/templates/{default → blank}/src/app/(base)/reports/overview-chart.tsx +0 -0
  744. /package/templates/{default → blank}/src/app/(base)/reports/page.tsx +0 -0
  745. /package/templates/{default → blank}/src/app/(base)/reports/report-detail-helpers.test.ts +0 -0
  746. /package/templates/{default → blank}/src/app/(base)/reports/report-detail-helpers.ts +0 -0
  747. /package/templates/{default → blank}/src/app/(base)/reports/report-metric-card.tsx +0 -0
  748. /package/templates/{default → blank}/src/app/(base)/reports/report-table-columns.tsx +0 -0
  749. /package/templates/{default → blank}/src/app/(base)/reports/report-table.tsx +0 -0
  750. /package/templates/{default → blank}/src/app/(base)/reports/report-view-table-columns.tsx +0 -0
  751. /package/templates/{default → blank}/src/app/(base)/reports/report-view-table.tsx +0 -0
  752. /package/templates/{default → blank}/src/app/(base)/reports/test-cases/page.tsx +0 -0
  753. /package/templates/{default → blank}/src/app/(base)/reports/test-cases/test-cases-metric-table-columns.tsx +0 -0
  754. /package/templates/{default → blank}/src/app/(base)/reports/test-cases/test-cases-metric-table.tsx +0 -0
  755. /package/templates/{default → blank}/src/app/(base)/reports/test-suites/page.tsx +0 -0
  756. /package/templates/{default → blank}/src/app/(base)/reports/test-suites/test-suites-metric-table-columns.tsx +0 -0
  757. /package/templates/{default → blank}/src/app/(base)/reports/test-suites/test-suites-metric-table.tsx +0 -0
  758. /package/templates/{default → blank}/src/app/(base)/reports/view-logs-button.tsx +0 -0
  759. /package/templates/{default → blank}/src/app/(base)/settings/page.tsx +0 -0
  760. /package/templates/{default → blank}/src/app/(base)/settings/settings-sync-panel-helpers.test.tsx +0 -0
  761. /package/templates/{default → blank}/src/app/(base)/settings/settings-sync-panel-helpers.tsx +0 -0
  762. /package/templates/{default → blank}/src/app/(base)/settings/settings-sync-panel.test.tsx +0 -0
  763. /package/templates/{default → blank}/src/app/(base)/settings/settings-sync-panel.tsx +0 -0
  764. /package/templates/{default → blank}/src/app/(base)/settings/use-settings-sync.ts +0 -0
  765. /package/templates/{default → blank}/src/app/(base)/tags/create/page.tsx +0 -0
  766. /package/templates/{default → blank}/src/app/(base)/tags/modify/[id]/page.tsx +0 -0
  767. /package/templates/{default → blank}/src/app/(base)/tags/page.tsx +0 -0
  768. /package/templates/{default → blank}/src/app/(base)/tags/tag-form-helpers.ts +0 -0
  769. /package/templates/{default → blank}/src/app/(base)/tags/tag-form.test.tsx +0 -0
  770. /package/templates/{default → blank}/src/app/(base)/tags/tag-form.tsx +0 -0
  771. /package/templates/{default → blank}/src/app/(base)/tags/tag-table-columns.tsx +0 -0
  772. /package/templates/{default → blank}/src/app/(base)/tags/tag-table.tsx +0 -0
  773. /package/templates/{default → blank}/src/app/(base)/template-step-groups/create/page.tsx +0 -0
  774. /package/templates/{default → blank}/src/app/(base)/template-step-groups/modify/[id]/page.tsx +0 -0
  775. /package/templates/{default → blank}/src/app/(base)/template-step-groups/page.tsx +0 -0
  776. /package/templates/{default → blank}/src/app/(base)/template-step-groups/template-step-group-form.test.tsx +0 -0
  777. /package/templates/{default → blank}/src/app/(base)/template-step-groups/template-step-group-form.tsx +0 -0
  778. /package/templates/{default → blank}/src/app/(base)/template-step-groups/template-step-group-helpers.ts +0 -0
  779. /package/templates/{default → blank}/src/app/(base)/template-step-groups/template-step-group-table-columns.tsx +0 -0
  780. /package/templates/{default → blank}/src/app/(base)/template-step-groups/template-step-group-table.tsx +0 -0
  781. /package/templates/{default → blank}/src/app/(base)/template-steps/create/page.tsx +0 -0
  782. /package/templates/{default → blank}/src/app/(base)/template-steps/modify/[id]/page.tsx +0 -0
  783. /package/templates/{default → blank}/src/app/(base)/template-steps/page.tsx +0 -0
  784. /package/templates/{default → blank}/src/app/(base)/template-steps/paramChip.tsx +0 -0
  785. /package/templates/{default → blank}/src/app/(base)/template-steps/template-step-form.test.tsx +0 -0
  786. /package/templates/{default → blank}/src/app/(base)/template-steps/template-step-form.tsx +0 -0
  787. /package/templates/{default → blank}/src/app/(base)/template-steps/template-step-helpers.test.ts +0 -0
  788. /package/templates/{default → blank}/src/app/(base)/template-steps/template-step-helpers.ts +0 -0
  789. /package/templates/{default → blank}/src/app/(base)/template-steps/template-step-table-columns.tsx +0 -0
  790. /package/templates/{default → blank}/src/app/(base)/template-steps/template-step-table.tsx +0 -0
  791. /package/templates/{default → blank}/src/app/(base)/template-test-cases/create/page.tsx +0 -0
  792. /package/templates/{default → blank}/src/app/(base)/template-test-cases/modify/[id]/page.tsx +0 -0
  793. /package/templates/{default → blank}/src/app/(base)/template-test-cases/page.tsx +0 -0
  794. /package/templates/{default → blank}/src/app/(base)/template-test-cases/template-test-case-flow.test.tsx +0 -0
  795. /package/templates/{default → blank}/src/app/(base)/template-test-cases/template-test-case-flow.tsx +0 -0
  796. /package/templates/{default → blank}/src/app/(base)/template-test-cases/template-test-case-form.test.tsx +0 -0
  797. /package/templates/{default → blank}/src/app/(base)/template-test-cases/template-test-case-form.tsx +0 -0
  798. /package/templates/{default → blank}/src/app/(base)/template-test-cases/template-test-case-table-columns.tsx +0 -0
  799. /package/templates/{default → blank}/src/app/(base)/template-test-cases/template-test-case-table.tsx +0 -0
  800. /package/templates/{default → blank}/src/app/(base)/test-cases/create/page.tsx +0 -0
  801. /package/templates/{default → blank}/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.test.ts +0 -0
  802. /package/templates/{default → blank}/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.ts +0 -0
  803. /package/templates/{default → blank}/src/app/(base)/test-cases/create-from-template/generate/[id]/page.tsx +0 -0
  804. /package/templates/{default → blank}/src/app/(base)/test-cases/create-from-template/page.tsx +0 -0
  805. /package/templates/{default → blank}/src/app/(base)/test-cases/create-from-template/template-selection-form.test.tsx +0 -0
  806. /package/templates/{default → blank}/src/app/(base)/test-cases/create-from-template/template-selection-form.tsx +0 -0
  807. /package/templates/{default → blank}/src/app/(base)/test-cases/modify/[id]/page.tsx +0 -0
  808. /package/templates/{default → blank}/src/app/(base)/test-cases/page.tsx +0 -0
  809. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-flow.test.tsx +0 -0
  810. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-flow.tsx +0 -0
  811. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-form.test.tsx +0 -0
  812. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-form.tsx +0 -0
  813. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-route-helpers.test.ts +0 -0
  814. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-route-helpers.ts +0 -0
  815. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-table-columns.tsx +0 -0
  816. /package/templates/{default → blank}/src/app/(base)/test-cases/test-case-table.tsx +0 -0
  817. /package/templates/{default → blank}/src/app/(base)/test-runs/[id]/page.tsx +0 -0
  818. /package/templates/{default → blank}/src/app/(base)/test-runs/create/page.tsx +0 -0
  819. /package/templates/{default → blank}/src/app/(base)/test-runs/page.tsx +0 -0
  820. /package/templates/{default → blank}/src/app/(base)/test-runs/test-run-form-helpers.test.ts +0 -0
  821. /package/templates/{default → blank}/src/app/(base)/test-runs/test-run-form-helpers.ts +0 -0
  822. /package/templates/{default → blank}/src/app/(base)/test-runs/test-run-form.test.tsx +0 -0
  823. /package/templates/{default → blank}/src/app/(base)/test-runs/test-run-form.tsx +0 -0
  824. /package/templates/{default → blank}/src/app/(base)/test-runs/test-run-table-columns.tsx +0 -0
  825. /package/templates/{default → blank}/src/app/(base)/test-runs/test-run-table.tsx +0 -0
  826. /package/templates/{default → blank}/src/app/(base)/test-runs/use-test-run-name-validation.ts +0 -0
  827. /package/templates/{default → blank}/src/app/(base)/test-suites/create/page.tsx +0 -0
  828. /package/templates/{default → blank}/src/app/(base)/test-suites/modify/[id]/page.tsx +0 -0
  829. /package/templates/{default → blank}/src/app/(base)/test-suites/page.tsx +0 -0
  830. /package/templates/{default → blank}/src/app/(base)/test-suites/test-suite-form.test.tsx +0 -0
  831. /package/templates/{default → blank}/src/app/(base)/test-suites/test-suite-form.tsx +0 -0
  832. /package/templates/{default → blank}/src/app/(base)/test-suites/test-suite-helpers.test.ts +0 -0
  833. /package/templates/{default → blank}/src/app/(base)/test-suites/test-suite-helpers.ts +0 -0
  834. /package/templates/{default → blank}/src/app/(base)/test-suites/test-suite-table-columns.tsx +0 -0
  835. /package/templates/{default → blank}/src/app/(base)/test-suites/test-suite-table.tsx +0 -0
  836. /package/templates/{default → blank}/src/app/(dashboard-components)/app-drawer.tsx +0 -0
  837. /package/templates/{default → blank}/src/app/(dashboard-components)/data-card-grid.tsx +0 -0
  838. /package/templates/{default → blank}/src/app/(dashboard-components)/data-card.tsx +0 -0
  839. /package/templates/{default → blank}/src/app/(dashboard-components)/execution-health-panel.tsx +0 -0
  840. /package/templates/{default → blank}/src/app/(dashboard-components)/ongoing-test-runs-card.tsx +0 -0
  841. /package/templates/{default → blank}/src/app/(dashboard-components)/quick-actions-drawer.tsx +0 -0
  842. /package/templates/{default → blank}/src/app/api/reports/steps/[stepId]/screenshot/route.test.ts +0 -0
  843. /package/templates/{default → blank}/src/app/api/reports/steps/[stepId]/screenshot/route.ts +0 -0
  844. /package/templates/{default → blank}/src/app/api/test-runs/[runId]/download/route.test.ts +0 -0
  845. /package/templates/{default → blank}/src/app/api/test-runs/[runId]/download/route.ts +0 -0
  846. /package/templates/{default → blank}/src/app/api/test-runs/[runId]/logs/route.ts +0 -0
  847. /package/templates/{default → blank}/src/app/api/test-runs/[runId]/trace/[testCaseId]/route.test.ts +0 -0
  848. /package/templates/{default → blank}/src/app/api/test-runs/[runId]/trace/[testCaseId]/route.ts +0 -0
  849. /package/templates/{default → blank}/src/app/favicon.ico +0 -0
  850. /package/templates/{default → blank}/src/app/page.tsx +0 -0
  851. /package/templates/{default → blank}/src/assets/icons/empty-tube.tsx +0 -0
  852. /package/templates/{default → blank}/src/assets/icons/tube-plus.tsx +0 -0
  853. /package/templates/{default → blank}/src/components/base-node.tsx +0 -0
  854. /package/templates/{default → blank}/src/components/chart/pie-chart.tsx +0 -0
  855. /package/templates/{default → blank}/src/components/data-extraction/locator-inspector-helpers.test.ts +0 -0
  856. /package/templates/{default → blank}/src/components/data-extraction/locator-inspector-helpers.ts +0 -0
  857. /package/templates/{default → blank}/src/components/data-extraction/locator-inspector.tsx +0 -0
  858. /package/templates/{default → blank}/src/components/data-state/empty-state.tsx +0 -0
  859. /package/templates/{default → blank}/src/components/data-visualization/info-card.tsx +0 -0
  860. /package/templates/{default → blank}/src/components/data-visualization/info-grid.tsx +0 -0
  861. /package/templates/{default → blank}/src/components/diagram/button-edge.tsx +0 -0
  862. /package/templates/{default → blank}/src/components/diagram/dynamic-parameters-helpers.test.ts +0 -0
  863. /package/templates/{default → blank}/src/components/diagram/dynamic-parameters-helpers.ts +0 -0
  864. /package/templates/{default → blank}/src/components/diagram/dynamic-parameters.tsx +0 -0
  865. /package/templates/{default → blank}/src/components/diagram/edit-header-option.tsx +0 -0
  866. /package/templates/{default → blank}/src/components/diagram/flow-diagram-helpers.test.ts +0 -0
  867. /package/templates/{default → blank}/src/components/diagram/flow-diagram-helpers.ts +0 -0
  868. /package/templates/{default → blank}/src/components/diagram/flow-diagram.tsx +0 -0
  869. /package/templates/{default → blank}/src/components/diagram/flow-host-helpers.test.ts +0 -0
  870. /package/templates/{default → blank}/src/components/diagram/flow-host-helpers.ts +0 -0
  871. /package/templates/{default → blank}/src/components/diagram/node-form-helpers.test.ts +0 -0
  872. /package/templates/{default → blank}/src/components/diagram/node-form-helpers.ts +0 -0
  873. /package/templates/{default → blank}/src/components/diagram/node-form.test.tsx +0 -0
  874. /package/templates/{default → blank}/src/components/diagram/node-form.tsx +0 -0
  875. /package/templates/{default → blank}/src/components/diagram/options-header-node.tsx +0 -0
  876. /package/templates/{default → blank}/src/components/diagram/template-step-combobox.tsx +0 -0
  877. /package/templates/{default → blank}/src/components/diagram/use-flow-node-order.ts +0 -0
  878. /package/templates/{default → blank}/src/components/form/error-message.tsx +0 -0
  879. /package/templates/{default → blank}/src/components/kokonutui/smooth-tab.tsx +0 -0
  880. /package/templates/{default → blank}/src/components/loading-skeleton/data-table/data-table-skeleton.tsx +0 -0
  881. /package/templates/{default → blank}/src/components/loading-skeleton/form/button-skeleton.tsx +0 -0
  882. /package/templates/{default → blank}/src/components/loading-skeleton/form/icon-button-skeleton.tsx +0 -0
  883. /package/templates/{default → blank}/src/components/loading-skeleton/form/text-input-skeleton.tsx +0 -0
  884. /package/templates/{default → blank}/src/components/loading-skeleton/visualization/table-skeleton.tsx +0 -0
  885. /package/templates/{default → blank}/src/components/logo.tsx +0 -0
  886. /package/templates/{default → blank}/src/components/navigation/command-badge.tsx +0 -0
  887. /package/templates/{default → blank}/src/components/navigation/command-chain-input.tsx +0 -0
  888. /package/templates/{default → blank}/src/components/navigation/entity-search-command.tsx +0 -0
  889. /package/templates/{default → blank}/src/components/navigation/nav-card.tsx +0 -0
  890. /package/templates/{default → blank}/src/components/navigation/nav-command-helpers.ts +0 -0
  891. /package/templates/{default → blank}/src/components/navigation/nav-command-search.tsx +0 -0
  892. /package/templates/{default → blank}/src/components/navigation/nav-command.test.tsx +0 -0
  893. /package/templates/{default → blank}/src/components/navigation/nav-command.tsx +0 -0
  894. /package/templates/{default → blank}/src/components/navigation/nav-link.tsx +0 -0
  895. /package/templates/{default → blank}/src/components/navigation/nav-menu-card-deck.tsx +0 -0
  896. /package/templates/{default → blank}/src/components/navigation/use-nav-command.ts +0 -0
  897. /package/templates/{default → blank}/src/components/node-header.tsx +0 -0
  898. /package/templates/{default → blank}/src/components/reports/test-case-logs-modal.tsx +0 -0
  899. /package/templates/{default → blank}/src/components/table/table-actions.tsx +0 -0
  900. /package/templates/{default → blank}/src/components/test-case/test-case-columns.tsx +0 -0
  901. /package/templates/{default → blank}/src/components/test-case/test-case-form-helpers.test.ts +0 -0
  902. /package/templates/{default → blank}/src/components/test-case/test-case-form-helpers.ts +0 -0
  903. /package/templates/{default → blank}/src/components/test-case/test-case-picker-helpers.test.ts +0 -0
  904. /package/templates/{default → blank}/src/components/test-case/test-case-picker-helpers.ts +0 -0
  905. /package/templates/{default → blank}/src/components/test-case/test-case-picker.test.tsx +0 -0
  906. /package/templates/{default → blank}/src/components/test-case/test-case-picker.tsx +0 -0
  907. /package/templates/{default → blank}/src/components/test-case/test-scenario-preview.tsx +0 -0
  908. /package/templates/{default → blank}/src/components/test-run/download-logs-button.tsx +0 -0
  909. /package/templates/{default → blank}/src/components/test-run/log-viewer-helpers.test.ts +0 -0
  910. /package/templates/{default → blank}/src/components/test-run/log-viewer-helpers.ts +0 -0
  911. /package/templates/{default → blank}/src/components/test-run/log-viewer.test.tsx +0 -0
  912. /package/templates/{default → blank}/src/components/test-run/log-viewer.tsx +0 -0
  913. /package/templates/{default → blank}/src/components/test-run/test-run-details-helpers.test.ts +0 -0
  914. /package/templates/{default → blank}/src/components/test-run/test-run-details-helpers.ts +0 -0
  915. /package/templates/{default → blank}/src/components/test-run/test-run-details.test.tsx +0 -0
  916. /package/templates/{default → blank}/src/components/test-run/test-run-details.tsx +0 -0
  917. /package/templates/{default → blank}/src/components/test-run/test-run-header-helpers.test.ts +0 -0
  918. /package/templates/{default → blank}/src/components/test-run/test-run-header-helpers.ts +0 -0
  919. /package/templates/{default → blank}/src/components/test-run/test-run-header.test.tsx +0 -0
  920. /package/templates/{default → blank}/src/components/test-run/test-run-header.tsx +0 -0
  921. /package/templates/{default → blank}/src/components/test-run/use-log-viewer.ts +0 -0
  922. /package/templates/{default → blank}/src/components/test-run/use-test-run-details.ts +0 -0
  923. /package/templates/{default → blank}/src/components/test-run/use-test-run-header.ts +0 -0
  924. /package/templates/{default → blank}/src/components/test-run/view-report-button.tsx +0 -0
  925. /package/templates/{default → blank}/src/components/test-suite/test-suite-picker-helpers.test.ts +0 -0
  926. /package/templates/{default → blank}/src/components/test-suite/test-suite-picker-helpers.ts +0 -0
  927. /package/templates/{default → blank}/src/components/test-suite/test-suite-picker.test.tsx +0 -0
  928. /package/templates/{default → blank}/src/components/test-suite/test-suite-picker.tsx +0 -0
  929. /package/templates/{default → blank}/src/components/typography/page-header-subtitle.tsx +0 -0
  930. /package/templates/{default → blank}/src/components/typography/page-header.tsx +0 -0
  931. /package/templates/{default → blank}/src/components/ui/alert-dialog.tsx +0 -0
  932. /package/templates/{default → blank}/src/components/ui/alert.tsx +0 -0
  933. /package/templates/{default → blank}/src/components/ui/avatar.tsx +0 -0
  934. /package/templates/{default → blank}/src/components/ui/badge.tsx +0 -0
  935. /package/templates/{default → blank}/src/components/ui/button.tsx +0 -0
  936. /package/templates/{default → blank}/src/components/ui/calendar.tsx +0 -0
  937. /package/templates/{default → blank}/src/components/ui/card.tsx +0 -0
  938. /package/templates/{default → blank}/src/components/ui/chart.tsx +0 -0
  939. /package/templates/{default → blank}/src/components/ui/checkbox.tsx +0 -0
  940. /package/templates/{default → blank}/src/components/ui/command.tsx +0 -0
  941. /package/templates/{default → blank}/src/components/ui/data-table-column-header.tsx +0 -0
  942. /package/templates/{default → blank}/src/components/ui/data-table-pagination.tsx +0 -0
  943. /package/templates/{default → blank}/src/components/ui/data-table-view-options.tsx +0 -0
  944. /package/templates/{default → blank}/src/components/ui/data-table.test.tsx +0 -0
  945. /package/templates/{default → blank}/src/components/ui/data-table.tsx +0 -0
  946. /package/templates/{default → blank}/src/components/ui/dialog.tsx +0 -0
  947. /package/templates/{default → blank}/src/components/ui/dropdown-menu.tsx +0 -0
  948. /package/templates/{default → blank}/src/components/ui/empty.tsx +0 -0
  949. /package/templates/{default → blank}/src/components/ui/input.tsx +0 -0
  950. /package/templates/{default → blank}/src/components/ui/kbd.tsx +0 -0
  951. /package/templates/{default → blank}/src/components/ui/label.tsx +0 -0
  952. /package/templates/{default → blank}/src/components/ui/loading.tsx +0 -0
  953. /package/templates/{default → blank}/src/components/ui/multi-select-with-preview.tsx +0 -0
  954. /package/templates/{default → blank}/src/components/ui/multi-select.test.tsx +0 -0
  955. /package/templates/{default → blank}/src/components/ui/multi-select.tsx +0 -0
  956. /package/templates/{default → blank}/src/components/ui/navigation-menu.tsx +0 -0
  957. /package/templates/{default → blank}/src/components/ui/popover.tsx +0 -0
  958. /package/templates/{default → blank}/src/components/ui/progress.tsx +0 -0
  959. /package/templates/{default → blank}/src/components/ui/radio-group.tsx +0 -0
  960. /package/templates/{default → blank}/src/components/ui/scroll-area.tsx +0 -0
  961. /package/templates/{default → blank}/src/components/ui/select.tsx +0 -0
  962. /package/templates/{default → blank}/src/components/ui/separator.tsx +0 -0
  963. /package/templates/{default → blank}/src/components/ui/skeleton.tsx +0 -0
  964. /package/templates/{default → blank}/src/components/ui/table.tsx +0 -0
  965. /package/templates/{default → blank}/src/components/ui/tabs.tsx +0 -0
  966. /package/templates/{default → blank}/src/components/ui/textarea.tsx +0 -0
  967. /package/templates/{default → blank}/src/components/ui/toast.tsx +0 -0
  968. /package/templates/{default → blank}/src/components/ui/toaster.tsx +0 -0
  969. /package/templates/{default → blank}/src/components/ui/tooltip.tsx +0 -0
  970. /package/templates/{default → blank}/src/components/user-prompt/delete-prompt.test.tsx +0 -0
  971. /package/templates/{default → blank}/src/components/user-prompt/delete-prompt.tsx +0 -0
  972. /package/templates/{default → blank}/src/config/db-config.ts +0 -0
  973. /package/templates/{default → blank}/src/constants/form-opts/diagram/node-form.ts +0 -0
  974. /package/templates/{default → blank}/src/constants/form-opts/environment-form-opts.ts +0 -0
  975. /package/templates/{default → blank}/src/constants/form-opts/locator-group-form-opts.ts +0 -0
  976. /package/templates/{default → blank}/src/constants/form-opts/module-form-opts.ts +0 -0
  977. /package/templates/{default → blank}/src/constants/form-opts/tag-form-opts.ts +0 -0
  978. /package/templates/{default → blank}/src/constants/form-opts/template-selection-form-opts.ts +0 -0
  979. /package/templates/{default → blank}/src/constants/form-opts/template-step-group-form-opts.ts +0 -0
  980. /package/templates/{default → blank}/src/constants/form-opts/template-test-case-form-opts.ts +0 -0
  981. /package/templates/{default → blank}/src/constants/form-opts/template-test-step-form-opts.ts +0 -0
  982. /package/templates/{default → blank}/src/constants/form-opts/test-case-form-opts.ts +0 -0
  983. /package/templates/{default → blank}/src/constants/form-opts/test-run-form-opts.ts +0 -0
  984. /package/templates/{default → blank}/src/constants/form-opts/test-suite-form-opts.ts +0 -0
  985. /package/templates/{default → blank}/src/hooks/use-toast.ts +0 -0
  986. /package/templates/{default → blank}/src/lib/automation/automation-path-roots.ts +0 -0
  987. /package/templates/{default → blank}/src/lib/automation/automation-workspace.ts +0 -0
  988. /package/templates/{default → blank}/src/lib/automation/paths.ts +0 -0
  989. /package/templates/{default → blank}/src/lib/automation/projection-service.ts +0 -0
  990. /package/templates/{default → blank}/src/lib/bidirectional-sync.ts +0 -0
  991. /package/templates/{default → blank}/src/lib/database-sync.ts +0 -0
  992. /package/templates/{default → blank}/src/lib/environment-file-utils.ts +0 -0
  993. /package/templates/{default → blank}/src/lib/executor/local-executor-adapter.ts +0 -0
  994. /package/templates/{default → blank}/src/lib/executor/types.ts +0 -0
  995. /package/templates/{default → blank}/src/lib/feature-file-generator.ts +0 -0
  996. /package/templates/{default → blank}/src/lib/gherkin-parser.test.ts +0 -0
  997. /package/templates/{default → blank}/src/lib/gherkin-parser.ts +0 -0
  998. /package/templates/{default → blank}/src/lib/locator-group-file-utils.ts +0 -0
  999. /package/templates/{default → blank}/src/lib/locator-picker/session-manager.ts +0 -0
  1000. /package/templates/{default → blank}/src/lib/locator-picker/suggestions.ts +0 -0
  1001. /package/templates/{default → blank}/src/lib/metrics/metric-calculator.ts +0 -0
  1002. /package/templates/{default → blank}/src/lib/module-hierarchy-builder.ts +0 -0
  1003. /package/templates/{default → blank}/src/lib/path-helpers/module-path.ts +0 -0
  1004. /package/templates/{default → blank}/src/lib/process/task-spawner.ts +0 -0
  1005. /package/templates/{default → blank}/src/lib/sync/projected-feature-utils.ts +0 -0
  1006. /package/templates/{default → blank}/src/lib/sync/sync-executor.test.ts +0 -0
  1007. /package/templates/{default → blank}/src/lib/sync/sync-executor.ts +0 -0
  1008. /package/templates/{default → blank}/src/lib/sync/sync-pending-counts.test.ts +0 -0
  1009. /package/templates/{default → blank}/src/lib/sync/sync-pending-counts.ts +0 -0
  1010. /package/templates/{default → blank}/src/lib/sync/sync-registry.ts +0 -0
  1011. /package/templates/{default → blank}/src/lib/tag-utils.ts +0 -0
  1012. /package/templates/{default → blank}/src/lib/template-sync-utils.d.ts +0 -0
  1013. /package/templates/{default → blank}/src/lib/template-sync-utils.d.ts.map +0 -0
  1014. /package/templates/{default → blank}/src/lib/template-sync-utils.js.map +0 -0
  1015. /package/templates/{default → blank}/src/lib/test-case-utils.ts +0 -0
  1016. /package/templates/{default → blank}/src/lib/test-run/log-formatter.ts +0 -0
  1017. /package/templates/{default → blank}/src/lib/test-run/matching.ts +0 -0
  1018. /package/templates/{default → blank}/src/lib/test-run/process-manager.ts +0 -0
  1019. /package/templates/{default → blank}/src/lib/test-run/report-parser.ts +0 -0
  1020. /package/templates/{default → blank}/src/lib/test-run/test-run-executor.ts +0 -0
  1021. /package/templates/{default → blank}/src/lib/test-run/winston-logger.ts +0 -0
  1022. /package/templates/{default → blank}/src/lib/test-suite-identifier-service.ts +0 -0
  1023. /package/templates/{default → blank}/src/lib/test-suite-utils.ts +0 -0
  1024. /package/templates/{default → blank}/src/lib/transformers/gherkin-converter.ts +0 -0
  1025. /package/templates/{default → blank}/src/lib/transformers/key-to-icon-transformer.tsx +0 -0
  1026. /package/templates/{default → blank}/src/lib/transformers/template-test-case-converter.ts +0 -0
  1027. /package/templates/{default → blank}/src/lib/utils/node-param-validation.ts +0 -0
  1028. /package/templates/{default → blank}/src/lib/utils/template-step-file-generator.ts +0 -0
  1029. /package/templates/{default → blank}/src/lib/utils/template-step-file-manager-intelligent.ts +0 -0
  1030. /package/templates/{default → blank}/src/lib/utils/template-step-file-manager.ts +0 -0
  1031. /package/templates/{default → blank}/src/lib/utils.ts +0 -0
  1032. /package/templates/{default → blank}/src/services/dashboard/dashboard-service.test.ts +0 -0
  1033. /package/templates/{default → blank}/src/services/dashboard/dashboard-service.ts +0 -0
  1034. /package/templates/{default → blank}/src/services/environment/environment-service.test.ts +0 -0
  1035. /package/templates/{default → blank}/src/services/environment/environment-service.ts +0 -0
  1036. /package/templates/{default → blank}/src/services/locator/locator-path-utils.test.ts +0 -0
  1037. /package/templates/{default → blank}/src/services/locator/locator-path-utils.ts +0 -0
  1038. /package/templates/{default → blank}/src/services/locator/locator-service.test.ts +0 -0
  1039. /package/templates/{default → blank}/src/services/locator/locator-service.ts +0 -0
  1040. /package/templates/{default → blank}/src/services/locator/locator-sync-utils.test.ts +0 -0
  1041. /package/templates/{default → blank}/src/services/locator/locator-sync-utils.ts +0 -0
  1042. /package/templates/{default → blank}/src/services/locator-group/locator-group-service.test.ts +0 -0
  1043. /package/templates/{default → blank}/src/services/locator-group/locator-group-service.ts +0 -0
  1044. /package/templates/{default → blank}/src/services/module/module-service.test.ts +0 -0
  1045. /package/templates/{default → blank}/src/services/module/module-service.ts +0 -0
  1046. /package/templates/{default → blank}/src/services/report/report-service.test.ts +0 -0
  1047. /package/templates/{default → blank}/src/services/report/report-service.ts +0 -0
  1048. /package/templates/{default → blank}/src/services/shared/constants.ts +0 -0
  1049. /package/templates/{default → blank}/src/services/shared/errors.test.ts +0 -0
  1050. /package/templates/{default → blank}/src/services/shared/errors.ts +0 -0
  1051. /package/templates/{default → blank}/src/services/shared/index.ts +0 -0
  1052. /package/templates/{default → blank}/src/services/tag/tag-service.test.ts +0 -0
  1053. /package/templates/{default → blank}/src/services/tag/tag-service.ts +0 -0
  1054. /package/templates/{default → blank}/src/services/template-step/template-step-service.test.ts +0 -0
  1055. /package/templates/{default → blank}/src/services/template-step/template-step-service.ts +0 -0
  1056. /package/templates/{default → blank}/src/services/template-step-group/template-step-group-service.test.ts +0 -0
  1057. /package/templates/{default → blank}/src/services/template-step-group/template-step-group-service.ts +0 -0
  1058. /package/templates/{default → blank}/src/services/template-test-case/template-test-case-service.test.ts +0 -0
  1059. /package/templates/{default → blank}/src/services/template-test-case/template-test-case-service.ts +0 -0
  1060. /package/templates/{default → blank}/src/services/test-case/test-case-service.test.ts +0 -0
  1061. /package/templates/{default → blank}/src/services/test-case/test-case-service.ts +0 -0
  1062. /package/templates/{default → blank}/src/services/test-run/test-run-helpers.ts +0 -0
  1063. /package/templates/{default → blank}/src/services/test-run/test-run-service.test.ts +0 -0
  1064. /package/templates/{default → blank}/src/services/test-run/test-run-service.ts +0 -0
  1065. /package/templates/{default → blank}/src/services/test-suite/test-suite-service.test.ts +0 -0
  1066. /package/templates/{default → blank}/src/services/test-suite/test-suite-service.ts +0 -0
  1067. /package/templates/{default → blank}/src/types/diagram/diagram.ts +0 -0
  1068. /package/templates/{default → blank}/src/types/diagram/template-step.ts +0 -0
  1069. /package/templates/{default → blank}/src/types/executor/browser.type.ts +0 -0
  1070. /package/templates/{default → blank}/src/types/form/actionHandler.ts +0 -0
  1071. /package/templates/{default → blank}/src/types/locator/locator.type.ts +0 -0
  1072. /package/templates/{default → blank}/src/types/locator-picker.ts +0 -0
  1073. /package/templates/{default → blank}/src/types/step/step.type.ts +0 -0
  1074. /package/templates/{default → blank}/src/types/table/data-table.ts +0 -0
  1075. /package/templates/{default → blank}/src/types/test-case-picker.ts +0 -0
  1076. /package/templates/{default → blank}/src/types/test-suite-picker.ts +0 -0
  1077. /package/templates/{default → blank}/tailwind.config.ts +0 -0
  1078. /package/templates/{default → starter}/automation/steps/actions/click.step.ts +0 -0
  1079. /package/templates/{default → starter}/automation/steps/actions/hover.step.ts +0 -0
  1080. /package/templates/{default → starter}/automation/steps/actions/input.step.ts +0 -0
  1081. /package/templates/{default → starter}/automation/steps/actions/navigation.step.ts +0 -0
  1082. /package/templates/{default → starter}/automation/steps/actions/random_data.step.ts +0 -0
  1083. /package/templates/{default → starter}/automation/steps/actions/store.step.ts +0 -0
  1084. /package/templates/{default → starter}/automation/steps/actions/wait.step.ts +0 -0
  1085. /package/templates/{default → starter}/automation/steps/validations/active_state_assertion.step.ts +0 -0
  1086. /package/templates/{default → starter}/automation/steps/validations/navigation_assertion.step.ts +0 -0
  1087. /package/templates/{default → starter}/automation/steps/validations/text_assertion.step.ts +0 -0
  1088. /package/templates/{default → starter}/automation/steps/validations/visibility_assertion.step.ts +0 -0
@@ -0,0 +1,717 @@
1
+ #!/usr/bin/env tsx
2
+
3
+ /**
4
+ * Script to synchronize test cases from feature files to database
5
+ * Scans feature files to ensure all test cases exist in DB
6
+ * Filesystem is the source of truth - test cases in DB but not in FS will be deleted
7
+ * Run this after merging changes to ensure test case sync
8
+ *
9
+ * Usage: npx tsx scripts/sync-test-cases.ts
10
+ */
11
+
12
+ import prisma from '../src/config/db-config'
13
+ import {
14
+ scanFeatureFiles,
15
+ extractModulePathFromFilePath,
16
+ ParsedStep,
17
+ } from '../src/lib/gherkin-parser'
18
+ import { buildModuleHierarchy, findModuleByPath } from '../src/lib/module-hierarchy-builder'
19
+ import { StepParameterType, TagType } from '@prisma/client'
20
+ import { ensureAutomationWorkspaceReady, getAutomationFeaturesDir } from '../src/lib/automation/paths'
21
+ import {
22
+ determineProjectedStepIcon,
23
+ getTestSuiteFilesystemKey,
24
+ normalizeProjectedDbTestCaseSteps,
25
+ } from '../src/lib/sync/projected-feature-utils'
26
+ import { extractTestSuiteNameFromFilename } from './lib/filename-utils'
27
+ import { splitTagLine } from './lib/tag-parsing'
28
+ import {
29
+ determineStepTypeAndIcon,
30
+ findMatchingTemplateStep,
31
+ sameResolvedParameters,
32
+ } from './lib/step-matcher'
33
+ import { printSyncSummary } from './lib/sync-summary'
34
+ import { runSyncScript } from './lib/sync-script-runner'
35
+
36
+ interface TestCaseFromFS {
37
+ identifierTag: string // @tc_... tag
38
+ title: string // From [brackets]
39
+ description: string // Outside brackets
40
+ testSuiteName: string // From feature file name
41
+ modulePath: string // From folder structure
42
+ filterTags: string[] // Scenario tags excluding @tc_...
43
+ steps: ParsedStep[] // From scenario steps
44
+ filePath: string // Feature file path
45
+ }
46
+
47
+ interface SyncResult {
48
+ testCasesScanned: number
49
+ testCasesExisting: number
50
+ testCasesCreated: number
51
+ testCasesUpdated: number
52
+ testCasesDeleted: number
53
+ errors: string[]
54
+ warnings: string[]
55
+ createdTestCases: Array<{ identifierTag: string; title: string }>
56
+ updatedTestCases: Array<{ identifierTag: string; title: string }>
57
+ deletedTestCases: Array<{ identifierTag: string; title: string }>
58
+ }
59
+
60
+ /**
61
+ * Normalizes a tag expression to ensure it has the @ prefix
62
+ * Example: "tc_123" -> "@tc_123", "@tc_123" -> "@tc_123"
63
+ */
64
+ function normalizeTagExpression(tagExpression: string): string {
65
+ return tagExpression.startsWith('@') ? tagExpression : `@${tagExpression}`
66
+ }
67
+
68
+ /**
69
+ * Parses scenario title to extract title and description
70
+ * Note: The gherkin parser already extracts these but swaps them
71
+ * Format: [Title] Description
72
+ * Example: "[Login] Validate login page navigation"
73
+ * The parser returns: name="Validate login page navigation", description="Login"
74
+ * We need: title="Login", description="Validate login page navigation"
75
+ */
76
+ function parseScenarioTitle(
77
+ scenarioName: string,
78
+ scenarioDescription?: string,
79
+ ): { title: string; description: string } {
80
+ // If description exists, it means there was a [bracket] in the original
81
+ // The parser swapped them, so description is the title and name is the description
82
+ if (scenarioDescription) {
83
+ return {
84
+ title: scenarioDescription.trim(),
85
+ description: scenarioName.trim(),
86
+ }
87
+ }
88
+ // If no description, there were no brackets, use name as description
89
+ return {
90
+ title: scenarioName.trim(),
91
+ description: '',
92
+ }
93
+ }
94
+
95
+ /**
96
+ * Scans feature files and extracts test case information
97
+ */
98
+ async function scanTestCasesFromFilesystem(featuresDir: string): Promise<TestCaseFromFS[]> {
99
+ const testCases: TestCaseFromFS[] = []
100
+
101
+ console.log('📁 Scanning feature files...')
102
+ const parsedFeatures = await scanFeatureFiles(featuresDir)
103
+ console.log(` Found ${parsedFeatures.length} feature file(s)`)
104
+
105
+ for (const parsedFeature of parsedFeatures) {
106
+ try {
107
+ const testSuiteName = extractTestSuiteNameFromFilename(parsedFeature.filePath)
108
+ const modulePath = extractModulePathFromFilePath(parsedFeature.filePath, featuresDir)
109
+
110
+ for (const scenario of parsedFeature.scenarios) {
111
+ // Find identifier tag (@tc_...)
112
+ const identifierTag = scenario.tags.find(tag => {
113
+ const tagName = tag.startsWith('@') ? tag.substring(1) : tag
114
+ return tagName.startsWith('tc_')
115
+ })
116
+
117
+ if (!identifierTag) {
118
+ console.log(
119
+ ` ⚠️ Scenario "${scenario.name}" in ${parsedFeature.filePath} has no @tc_... identifier tag, skipping`,
120
+ )
121
+ continue
122
+ }
123
+
124
+ // Extract filter tags (all tags except identifier tag)
125
+ const filterTags = scenario.tags.filter(tag => tag !== identifierTag).flatMap(tag => splitTagLine(tag))
126
+
127
+ // Parse title and description from scenario name
128
+ // Note: gherkin parser swaps them, so we pass both
129
+ const { title, description } = parseScenarioTitle(scenario.name, scenario.description)
130
+
131
+ testCases.push({
132
+ identifierTag: identifierTag.startsWith('@') ? identifierTag : `@${identifierTag}`,
133
+ title,
134
+ description,
135
+ testSuiteName,
136
+ modulePath,
137
+ filterTags,
138
+ steps: scenario.steps,
139
+ filePath: parsedFeature.filePath,
140
+ })
141
+ }
142
+ } catch (error) {
143
+ console.error(` ❌ Error processing feature file '${parsedFeature.filePath}': ${error}`)
144
+ }
145
+ }
146
+
147
+ return testCases
148
+ }
149
+
150
+ /**
151
+ * Finds or creates a tag by tag expression
152
+ * If the tag exists but has a different type, updates it to the correct type
153
+ */
154
+ async function findOrCreateTag(tagExpression: string, type: TagType): Promise<string | null> {
155
+ try {
156
+ const tagName = tagExpression.startsWith('@') ? tagExpression.substring(1) : tagExpression
157
+
158
+ const existingTag = await prisma.tag.findFirst({
159
+ where: { tagExpression },
160
+ })
161
+
162
+ if (existingTag) {
163
+ // If the tag exists but has a different type, update it
164
+ // This is important because tags might have been created with the wrong type previously
165
+ if (existingTag.type !== type) {
166
+ await prisma.tag.update({
167
+ where: { id: existingTag.id },
168
+ data: { type },
169
+ })
170
+ console.log(` 🔄 Updated tag '${tagExpression}' type from ${existingTag.type} to ${type}`)
171
+ }
172
+ return existingTag.id
173
+ }
174
+
175
+ const newTag = await prisma.tag.create({
176
+ data: {
177
+ name: tagName,
178
+ tagExpression,
179
+ type,
180
+ },
181
+ })
182
+
183
+ return newTag.id
184
+ } catch (error) {
185
+ console.error(`Error finding/creating tag '${tagExpression}': ${error}`)
186
+ return null
187
+ }
188
+ }
189
+
190
+ async function deleteTestCaseWithCascade(
191
+ testCaseId: string,
192
+ identifierTagId?: string,
193
+ ): Promise<void> {
194
+ // Keep deletes in dependency order to satisfy RESTRICT constraints and
195
+ // mirror domain-level delete behavior in a single transactional boundary.
196
+ await prisma.$transaction(async tx => {
197
+ await tx.testRunTestCase.deleteMany({
198
+ where: { testCaseId },
199
+ })
200
+ await tx.review.deleteMany({
201
+ where: { testCaseId },
202
+ })
203
+ await tx.linkedJiraTicket.deleteMany({
204
+ where: { testCaseId },
205
+ })
206
+ await tx.testCaseStepParameter.deleteMany({
207
+ where: {
208
+ testCaseStep: { testCaseId },
209
+ },
210
+ })
211
+ await tx.testCaseStep.deleteMany({
212
+ where: { testCaseId },
213
+ })
214
+
215
+ if (identifierTagId) {
216
+ const otherTestCasesWithTag = await tx.testCase.findMany({
217
+ where: {
218
+ tags: { some: { id: identifierTagId } },
219
+ id: { not: testCaseId },
220
+ },
221
+ })
222
+ if (otherTestCasesWithTag.length === 0) {
223
+ await tx.tag.delete({
224
+ where: { id: identifierTagId },
225
+ })
226
+ }
227
+ }
228
+
229
+ await tx.testCase.delete({
230
+ where: { id: testCaseId },
231
+ })
232
+ })
233
+ }
234
+
235
+ /**
236
+ * Syncs test case steps to database
237
+ */
238
+ async function syncTestCaseSteps(
239
+ testCaseId: string,
240
+ steps: ParsedStep[],
241
+ templateSteps: Array<{
242
+ id: string
243
+ signature: string
244
+ parameters: Array<{ name: string; order: number; type: StepParameterType }>
245
+ }>,
246
+ result: SyncResult,
247
+ ): Promise<void> {
248
+ try {
249
+ // Load current persisted step state once so we can diff by order and apply
250
+ // minimal mutations for idempotent sync runs.
251
+ const existingSteps = await prisma.testCaseStep.findMany({
252
+ where: { testCaseId },
253
+ orderBy: { order: 'asc' },
254
+ include: {
255
+ TemplateStep: {
256
+ select: {
257
+ signature: true,
258
+ },
259
+ },
260
+ parameters: true,
261
+ },
262
+ })
263
+
264
+ // Order is the stable identity within a scenario for synchronization.
265
+ const existingStepsMap = new Map(existingSteps.map(step => [step.order, step]))
266
+ const projectedExistingStepsMap = new Map(normalizeProjectedDbTestCaseSteps(existingSteps).map(step => [step.order, step]))
267
+
268
+ // Process each step from filesystem
269
+ for (const step of steps) {
270
+ const match = findMatchingTemplateStep(step, templateSteps)
271
+
272
+ if (!match) {
273
+ result.warnings.push(
274
+ `Could not match gherkin step "${step.keyword} ${step.text}" to any template step for test case ${testCaseId}`,
275
+ )
276
+ console.log(` ⚠️ Skipping step "${step.keyword} ${step.text}" - no template step match found`)
277
+ continue
278
+ }
279
+
280
+ const existingStep = existingStepsMap.get(step.order)
281
+ const { icon } = determineStepTypeAndIcon(step.keyword)
282
+ const gherkinStep = `${step.keyword} ${step.text}`
283
+
284
+ if (existingStep) {
285
+ const projectedExistingStep = projectedExistingStepsMap.get(step.order)
286
+ const matchesProjectedState =
287
+ projectedExistingStep != null &&
288
+ projectedExistingStep.gherkinStep === gherkinStep &&
289
+ projectedExistingStep.label === step.text &&
290
+ projectedExistingStep.icon === determineProjectedStepIcon(step.keyword) &&
291
+ projectedExistingStep.templateStepSignature === match.signature &&
292
+ sameResolvedParameters(projectedExistingStep.parameters, match.parameters)
293
+
294
+ // First compare with projected state (normalizes icon/signature/params) to
295
+ // avoid redundant writes from representational differences.
296
+ const needsUpdate =
297
+ !matchesProjectedState &&
298
+ (existingStep.gherkinStep !== gherkinStep ||
299
+ existingStep.templateStepId !== match.templateStepId ||
300
+ existingStep.label !== step.text ||
301
+ existingStep.icon !== icon)
302
+
303
+ if (needsUpdate) {
304
+ await prisma.testCaseStep.update({
305
+ where: { id: existingStep.id },
306
+ data: {
307
+ gherkinStep,
308
+ label: step.text,
309
+ templateStepId: match.templateStepId,
310
+ icon,
311
+ },
312
+ })
313
+
314
+ // Update parameters
315
+ await prisma.testCaseStepParameter.deleteMany({
316
+ where: { testCaseStepId: existingStep.id },
317
+ })
318
+
319
+ for (const param of match.parameters) {
320
+ await prisma.testCaseStepParameter.create({
321
+ data: {
322
+ testCaseStepId: existingStep.id,
323
+ name: param.name,
324
+ value: param.value,
325
+ order: param.order,
326
+ type: param.type,
327
+ },
328
+ })
329
+ }
330
+ }
331
+ } else {
332
+ // Create new step
333
+ const newStep = await prisma.testCaseStep.create({
334
+ data: {
335
+ testCaseId,
336
+ order: step.order,
337
+ gherkinStep,
338
+ label: step.text,
339
+ icon,
340
+ templateStepId: match.templateStepId,
341
+ },
342
+ })
343
+
344
+ // Create parameters
345
+ for (const param of match.parameters) {
346
+ await prisma.testCaseStepParameter.create({
347
+ data: {
348
+ testCaseStepId: newStep.id,
349
+ name: param.name,
350
+ value: param.value,
351
+ order: param.order,
352
+ type: param.type,
353
+ },
354
+ })
355
+ }
356
+ }
357
+ }
358
+
359
+ // Delete steps that no longer exist in filesystem
360
+ const fsStepOrders = new Set(steps.map(s => s.order))
361
+ for (const existingStep of existingSteps) {
362
+ if (!fsStepOrders.has(existingStep.order)) {
363
+ await prisma.testCaseStep.delete({
364
+ where: { id: existingStep.id },
365
+ })
366
+ }
367
+ }
368
+ } catch (error) {
369
+ const errorMsg = `Error syncing steps for test case ${testCaseId}: ${error}`
370
+ result.errors.push(errorMsg)
371
+ console.error(` ❌ ${errorMsg}`)
372
+ }
373
+ }
374
+
375
+ type TemplateStepForMatch = Array<{
376
+ id: string
377
+ signature: string
378
+ parameters: Array<{ name: string; order: number; type: StepParameterType }>
379
+ }>
380
+
381
+ async function upsertTestCase(
382
+ testCase: TestCaseFromFS,
383
+ templateSteps: TemplateStepForMatch,
384
+ suitesByModuleId: Map<string, Array<{ id: string; name: string }>>,
385
+ result: SyncResult,
386
+ ): Promise<void> {
387
+ // Resolve module + suite first so create/update paths share the same identity anchor.
388
+ // Ensure module exists
389
+ let moduleId = await findModuleByPath(testCase.modulePath)
390
+
391
+ if (!moduleId) {
392
+ console.log(` 📦 Creating module hierarchy for path: ${testCase.modulePath}`)
393
+ moduleId = await buildModuleHierarchy(testCase.modulePath)
394
+ }
395
+
396
+ // Find test suite
397
+ let moduleSuites = suitesByModuleId.get(moduleId)
398
+ if (!moduleSuites) {
399
+ moduleSuites = await prisma.testSuite.findMany({
400
+ where: {
401
+ moduleId: moduleId,
402
+ },
403
+ select: {
404
+ id: true,
405
+ name: true,
406
+ },
407
+ })
408
+ suitesByModuleId.set(moduleId, moduleSuites)
409
+ }
410
+
411
+ const testSuite = moduleSuites.find(
412
+ suite => getTestSuiteFilesystemKey(suite.name) === getTestSuiteFilesystemKey(testCase.testSuiteName),
413
+ )
414
+
415
+ if (!testSuite) {
416
+ result.errors.push(`Test suite '${testCase.testSuiteName}' not found in module '${testCase.modulePath}'`)
417
+ console.error(` ❌ Test suite '${testCase.testSuiteName}' not found in module '${testCase.modulePath}'`)
418
+ return
419
+ }
420
+
421
+ const identifierTagName = testCase.identifierTag.startsWith('@')
422
+ ? testCase.identifierTag.substring(1)
423
+ : testCase.identifierTag
424
+
425
+ const identifierTag = await prisma.tag.findFirst({
426
+ where: {
427
+ name: identifierTagName,
428
+ type: TagType.IDENTIFIER,
429
+ },
430
+ include: {
431
+ testCases: {
432
+ include: {
433
+ TestSuite: true,
434
+ },
435
+ },
436
+ },
437
+ })
438
+
439
+ const filterTagIds: string[] = []
440
+ // FILTER tags are opportunistically created during test-case sync; identifier tags
441
+ // are handled separately because they define test-case identity.
442
+ for (const filterTagExpr of testCase.filterTags) {
443
+ const tagId = await findOrCreateTag(filterTagExpr, TagType.FILTER)
444
+ if (tagId) {
445
+ filterTagIds.push(tagId)
446
+ }
447
+ }
448
+
449
+ if (identifierTag && identifierTag.testCases.length > 0) {
450
+ // Prefer a suite-matching case when tags are reused; fallback preserves legacy data.
451
+ const matchedExistingTestCaseSummary =
452
+ identifierTag.testCases.find(existingCase => existingCase.TestSuite.some(suite => suite.id === testSuite.id)) ??
453
+ identifierTag.testCases[0]
454
+ const existingTestCase = await prisma.testCase.findUnique({
455
+ where: { id: matchedExistingTestCaseSummary.id },
456
+ include: {
457
+ tags: true,
458
+ TestSuite: true,
459
+ },
460
+ })
461
+
462
+ if (!existingTestCase) {
463
+ result.errors.push(`Test case with identifier tag '${testCase.identifierTag}' not found`)
464
+ return
465
+ }
466
+
467
+ const currentFilterTagIds =
468
+ existingTestCase.tags
469
+ .filter(t => t.type === TagType.FILTER)
470
+ .map(t => t.id)
471
+ .sort() || []
472
+
473
+ const newFilterTagIds = filterTagIds.sort()
474
+ const tagsChanged = JSON.stringify(currentFilterTagIds) !== JSON.stringify(newFilterTagIds)
475
+ const isAssociated = existingTestCase.TestSuite.some(ts => ts.id === testSuite.id)
476
+
477
+ const needsUpdate =
478
+ existingTestCase.title !== testCase.title ||
479
+ existingTestCase.description !== testCase.description ||
480
+ tagsChanged ||
481
+ !isAssociated
482
+
483
+ if (needsUpdate) {
484
+ await prisma.testCase.update({
485
+ where: { id: existingTestCase.id },
486
+ data: {
487
+ title: testCase.title,
488
+ description: testCase.description,
489
+ tags: {
490
+ set: [identifierTag.id, ...filterTagIds].map(id => ({ id })),
491
+ },
492
+ TestSuite: isAssociated
493
+ ? undefined
494
+ : {
495
+ connect: [{ id: testSuite.id }],
496
+ },
497
+ },
498
+ })
499
+
500
+ result.testCasesUpdated++
501
+ result.updatedTestCases.push({
502
+ identifierTag: testCase.identifierTag,
503
+ title: testCase.title,
504
+ })
505
+ console.log(` 🔄 Updated test case '${testCase.title}' (${testCase.identifierTag})`)
506
+ } else {
507
+ result.testCasesExisting++
508
+ console.log(` ✓ Test case '${testCase.title}' (${testCase.identifierTag}) already up to date`)
509
+ }
510
+
511
+ await syncTestCaseSteps(existingTestCase.id, testCase.steps, templateSteps, result)
512
+ return
513
+ }
514
+
515
+ const identifierTagId = await findOrCreateTag(testCase.identifierTag, TagType.IDENTIFIER)
516
+
517
+ if (!identifierTagId) {
518
+ result.errors.push(`Failed to create identifier tag '${testCase.identifierTag}'`)
519
+ console.error(` ❌ Failed to create identifier tag '${testCase.identifierTag}'`)
520
+ return
521
+ }
522
+
523
+ const newTestCase = await prisma.testCase.create({
524
+ data: {
525
+ title: testCase.title,
526
+ description: testCase.description,
527
+ tags: {
528
+ connect: [identifierTagId, ...filterTagIds].map(id => ({ id })),
529
+ },
530
+ TestSuite: {
531
+ connect: [{ id: testSuite.id }],
532
+ },
533
+ },
534
+ include: {
535
+ tags: true,
536
+ },
537
+ })
538
+
539
+ const hasIdentifierTag = newTestCase.tags.some(t => t.type === TagType.IDENTIFIER)
540
+ if (!hasIdentifierTag) {
541
+ result.errors.push(
542
+ `Test case '${testCase.title}' was created but identifier tag '${testCase.identifierTag}' was not associated`,
543
+ )
544
+ console.error(
545
+ ` ❌ Test case '${testCase.title}' was created but identifier tag '${testCase.identifierTag}' was not associated`,
546
+ )
547
+ }
548
+
549
+ result.testCasesCreated++
550
+ result.createdTestCases.push({
551
+ identifierTag: testCase.identifierTag,
552
+ title: testCase.title,
553
+ })
554
+ console.log(` ➕ Created test case '${testCase.title}' (${testCase.identifierTag})`)
555
+
556
+ await syncTestCaseSteps(newTestCase.id, testCase.steps, templateSteps, result)
557
+ }
558
+
559
+ async function deleteOrphanedTestCases(fsTestCaseTags: Set<string>, result: SyncResult): Promise<void> {
560
+ console.log('\n🔍 Checking for orphaned test cases (not in filesystem)...')
561
+ const allDbTestCases = await prisma.testCase.findMany({
562
+ include: {
563
+ tags: true,
564
+ },
565
+ })
566
+
567
+ for (const dbTestCase of allDbTestCases) {
568
+ try {
569
+ const identifierTag = dbTestCase.tags.find(t => t.type === TagType.IDENTIFIER)
570
+
571
+ if (!identifierTag) {
572
+ console.log(` ⚠️ Test case '${dbTestCase.title}' has no identifier tag - will be deleted as orphaned`)
573
+ await deleteTestCaseWithCascade(dbTestCase.id)
574
+ result.testCasesDeleted++
575
+ result.deletedTestCases.push({
576
+ identifierTag: '(no identifier tag)',
577
+ title: dbTestCase.title,
578
+ })
579
+ console.log(` 🗑️ Deleted test case '${dbTestCase.title}' (no identifier tag)`)
580
+ continue
581
+ }
582
+
583
+ const identifierTagExpr = normalizeTagExpression(identifierTag.tagExpression)
584
+ // Compare normalized expressions because filesystem tags are always normalized
585
+ // with '@', while historical DB entries may not be.
586
+ if (!fsTestCaseTags.has(identifierTagExpr)) {
587
+ const testRunTestCases = await prisma.testRunTestCase.findMany({
588
+ where: { testCaseId: dbTestCase.id },
589
+ })
590
+
591
+ if (testRunTestCases.length > 0) {
592
+ console.log(
593
+ ` ⚠️ Test case '${dbTestCase.title}' (${identifierTagExpr}) has ${testRunTestCases.length} test run(s) - will be deleted`,
594
+ )
595
+ }
596
+
597
+ await deleteTestCaseWithCascade(dbTestCase.id, identifierTag.id)
598
+
599
+ result.testCasesDeleted++
600
+ result.deletedTestCases.push({
601
+ identifierTag: identifierTagExpr,
602
+ title: dbTestCase.title,
603
+ })
604
+ console.log(` 🗑️ Deleted test case '${dbTestCase.title}' (${identifierTagExpr}) (not in filesystem)`)
605
+ }
606
+ } catch (error) {
607
+ const errorMsg = `Error deleting test case '${dbTestCase.title}': ${error}`
608
+ result.errors.push(errorMsg)
609
+ console.error(` ❌ ${errorMsg}`)
610
+ }
611
+ }
612
+ }
613
+
614
+ /**
615
+ * Syncs test cases from filesystem to database
616
+ */
617
+ async function syncTestCasesToDatabase(testCasesFromFS: TestCaseFromFS[], result: SyncResult): Promise<void> {
618
+ console.log('\n✅ Syncing test cases to database...')
619
+ // Fixes prior N+1 behavior: template steps are loaded once and reused for
620
+ // every gherkin step match in this sync run.
621
+ const templateSteps = await prisma.templateStep.findMany({
622
+ include: {
623
+ parameters: {
624
+ orderBy: { order: 'asc' },
625
+ },
626
+ },
627
+ })
628
+
629
+ // Track test cases from filesystem (by identifier tag)
630
+ const fsTestCaseTags = new Set<string>()
631
+ const suitesByModuleId = new Map<string, Array<{ id: string; name: string }>>()
632
+
633
+ for (const testCase of testCasesFromFS) {
634
+ try {
635
+ fsTestCaseTags.add(testCase.identifierTag)
636
+ await upsertTestCase(testCase, templateSteps, suitesByModuleId, result)
637
+ } catch (error) {
638
+ const errorMsg = `Error processing test case '${testCase.title}' from ${testCase.filePath}: ${error}`
639
+ result.errors.push(errorMsg)
640
+ console.error(` ❌ ${errorMsg}`)
641
+ }
642
+ }
643
+ await deleteOrphanedTestCases(fsTestCaseTags, result)
644
+ }
645
+
646
+ /**
647
+ * Generates and displays sync summary
648
+ */
649
+ async function main(): Promise<SyncResult | void> {
650
+ console.log('🔄 Starting test cases sync...')
651
+ console.log('This will scan feature files and sync test cases to database.')
652
+ console.log('Filesystem is the source of truth - test cases in DB but not in FS will be deleted.\n')
653
+
654
+ await ensureAutomationWorkspaceReady()
655
+ const featuresDir = getAutomationFeaturesDir()
656
+
657
+ // Scan test cases from filesystem
658
+ const testCasesFromFS = await scanTestCasesFromFilesystem(featuresDir)
659
+
660
+ if (testCasesFromFS.length === 0) {
661
+ console.log('\n⚠️ No test cases found in feature files. Nothing to sync.')
662
+ return
663
+ }
664
+
665
+ console.log(`\n📋 Found ${testCasesFromFS.length} test case(s) from feature files:`)
666
+ for (const tc of testCasesFromFS) {
667
+ console.log(` - ${tc.title} (${tc.identifierTag}) in ${tc.testSuiteName}`)
668
+ }
669
+
670
+ // Initialize result
671
+ const result: SyncResult = {
672
+ testCasesScanned: testCasesFromFS.length,
673
+ testCasesExisting: 0,
674
+ testCasesCreated: 0,
675
+ testCasesUpdated: 0,
676
+ testCasesDeleted: 0,
677
+ errors: [],
678
+ warnings: [],
679
+ createdTestCases: [],
680
+ updatedTestCases: [],
681
+ deletedTestCases: [],
682
+ }
683
+
684
+ // Sync to database
685
+ await syncTestCasesToDatabase(testCasesFromFS, result)
686
+
687
+ printSyncSummary(
688
+ [
689
+ { label: '📁 Test cases scanned', value: result.testCasesScanned },
690
+ { label: '✅ Test cases existing', value: result.testCasesExisting },
691
+ { label: '➕ Test cases created', value: result.testCasesCreated },
692
+ { label: '🔄 Test cases updated', value: result.testCasesUpdated },
693
+ { label: '🗑️ Test cases deleted', value: result.testCasesDeleted },
694
+ { label: '⚠️ Warnings', value: result.warnings.length },
695
+ { label: '❌ Errors', value: result.errors.length },
696
+ ],
697
+ [
698
+ {
699
+ title: 'Created test cases',
700
+ items: result.createdTestCases.map(tc => `${tc.title} (${tc.identifierTag})`),
701
+ },
702
+ {
703
+ title: 'Updated test cases',
704
+ items: result.updatedTestCases.map(tc => `${tc.title} (${tc.identifierTag})`),
705
+ },
706
+ {
707
+ title: 'Deleted test cases',
708
+ items: result.deletedTestCases.map(tc => `${tc.title} (${tc.identifierTag})`),
709
+ },
710
+ { title: 'Warnings', items: result.warnings },
711
+ { title: 'Errors', items: result.errors },
712
+ ],
713
+ )
714
+ return result
715
+ }
716
+
717
+ runSyncScript(main)