create-appraisejs 0.3.0 → 0.3.1-alpha.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.
- package/dist/cli.e2e.test.d.ts +2 -0
- package/dist/cli.e2e.test.d.ts.map +1 -0
- package/dist/cli.e2e.test.js +73 -0
- package/dist/cli.e2e.test.js.map +1 -0
- package/dist/config.test.d.ts +2 -0
- package/dist/config.test.d.ts.map +1 -0
- package/dist/config.test.js +65 -0
- package/dist/config.test.js.map +1 -0
- package/dist/copy-template.test.d.ts +2 -0
- package/dist/copy-template.test.d.ts.map +1 -0
- package/dist/copy-template.test.js +71 -0
- package/dist/copy-template.test.js.map +1 -0
- package/dist/download-repo.test.d.ts +2 -0
- package/dist/download-repo.test.d.ts.map +1 -0
- package/dist/download-repo.test.js +14 -0
- package/dist/download-repo.test.js.map +1 -0
- package/dist/install.test.d.ts +2 -0
- package/dist/install.test.d.ts.map +1 -0
- package/dist/install.test.js +119 -0
- package/dist/install.test.js.map +1 -0
- package/dist/prompts.test.d.ts +2 -0
- package/dist/prompts.test.d.ts.map +1 -0
- package/dist/prompts.test.js +58 -0
- package/dist/prompts.test.js.map +1 -0
- package/package.json +3 -6
- package/templates/blank/.env.example +2 -2
- package/templates/blank/components.json +24 -24
- package/templates/blank/cucumber.mjs +16 -16
- package/templates/blank/gitignore +6 -0
- package/templates/blank/next-env.d.ts +6 -6
- package/templates/blank/package-lock.json +2274 -1019
- package/templates/blank/package.json +27 -18
- package/templates/blank/packages/cucumber-runtime/package.json +13 -13
- package/templates/blank/packages/cucumber-runtime/src/cache.util.ts +93 -93
- package/templates/blank/packages/cucumber-runtime/src/cli.ts +68 -68
- package/templates/blank/packages/cucumber-runtime/src/environment.util.ts +21 -21
- package/templates/blank/packages/cucumber-runtime/src/executor.ts +32 -32
- package/templates/blank/packages/cucumber-runtime/src/index.ts +17 -17
- package/templates/blank/packages/cucumber-runtime/src/locator.util.ts +234 -234
- package/templates/blank/packages/cucumber-runtime/src/parameter-types.ts +7 -7
- package/templates/blank/packages/cucumber-runtime/src/random-data.util.ts +35 -35
- package/templates/blank/packages/cucumber-runtime/src/types.ts +13 -13
- package/templates/blank/packages/cucumber-runtime/src/world.ts +44 -44
- package/templates/blank/packages/cucumber-runtime/tsconfig.json +11 -11
- package/templates/blank/postcss.config.mjs +8 -8
- package/templates/blank/prisma/dev.db +0 -0
- package/templates/blank/prisma/migrations/20251104113456_add_type_for_template_step_groups/migration.sql +16 -16
- package/templates/blank/prisma/migrations/20251104170946_add_tags_to_test_suite_and_test_case/migration.sql +27 -27
- package/templates/blank/prisma/migrations/20251112190024_add_cascade_delete_to_test_run_test_case/migration.sql +17 -17
- package/templates/blank/prisma/migrations/20251113181100_add_test_run_log/migration.sql +12 -12
- package/templates/blank/prisma/migrations/20251119191838_add_tag_type/migration.sql +28 -28
- package/templates/blank/prisma/migrations/20251121164059_add_conflict_resolution/migration.sql +12 -12
- package/templates/blank/prisma/migrations/20251223183400_add_report_model_to_db_schema/migration.sql +10 -10
- package/templates/blank/prisma/migrations/20251223183637_add_report_test_case_entity_for_storing_test_results_for_individual_test_cases/migration.sql +10 -10
- package/templates/blank/prisma/migrations/20251224083549_add_comprehensive_report_storage/migration.sql +108 -108
- package/templates/blank/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql +55 -55
- package/templates/blank/prisma/migrations/20251230124637_add_unique_constraint_to_test_run_name/migration.sql +27 -27
- package/templates/blank/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql +59 -59
- package/templates/blank/prisma/migrations/20260127172022_add_cascade_delete_to_step_parameters/migration.sql +34 -34
- package/templates/blank/prisma/migrations/20260313093000_add_report_step_screenshot_path/migration.sql +1 -1
- package/templates/blank/prisma/migrations/20260507000000_add_flow_builder_node_grouping/migration.sql +34 -0
- package/templates/blank/prisma/schema.prisma +36 -0
- package/templates/blank/scripts/lib/jsdoc-parser.test.ts +12 -0
- package/templates/blank/scripts/lib/jsdoc-parser.ts +5 -88
- package/templates/blank/scripts/lib/step-file-parser.ts +111 -178
- package/templates/blank/scripts/lib/template-sync-utils.test.ts +35 -0
- package/templates/blank/scripts/run-fallow-commit.mjs +23 -0
- package/templates/blank/scripts/setup-env.ts +0 -0
- package/templates/blank/scripts/sync-tags.ts +1 -1
- package/templates/blank/scripts/sync-test-suites.ts +233 -162
- package/templates/blank/src/actions/dashboard/dashboard-actions.ts +0 -7
- package/templates/blank/src/actions/locator-picker/locator-picker-actions.test.ts +10 -0
- package/templates/blank/src/actions/locator-picker/locator-picker-actions.ts +5 -0
- package/templates/blank/src/actions/server-action-boundary.test.ts +794 -0
- package/templates/blank/src/actions/test-suite/test-suite-actions.ts +2 -1
- package/templates/blank/src/app/(base)/environments/create/page.tsx +28 -28
- package/templates/blank/src/app/(base)/environments/environment-form.tsx +16 -23
- package/templates/blank/src/app/(base)/environments/page.tsx +2 -2
- package/templates/blank/src/app/(base)/layout.tsx +10 -10
- package/templates/blank/src/app/(base)/locator-groups/create/page.tsx +1 -1
- package/templates/blank/src/app/(base)/locator-groups/locator-group-form.tsx +24 -24
- package/templates/blank/src/app/(base)/locator-groups/locator-group-table-columns.tsx +77 -77
- package/templates/blank/src/app/(base)/locator-groups/locator-group-table.tsx +28 -28
- package/templates/blank/src/app/(base)/locator-groups/modify/[id]/page.tsx +46 -46
- package/templates/blank/src/app/(base)/locator-groups/page.tsx +3 -3
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-helpers.ts +34 -333
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-response.test.ts +85 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-response.ts +125 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-state.ts +227 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-types.ts +68 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace.test.tsx +73 -1
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace.tsx +19 -16
- package/templates/blank/src/app/(base)/locators/create/page.tsx +4 -8
- package/templates/blank/src/app/(base)/locators/create/use-locator-workspace.ts +15 -2
- package/templates/blank/src/app/(base)/locators/locator-file-sync.test.ts +45 -0
- package/templates/blank/src/app/(base)/locators/locator-file-sync.ts +22 -0
- package/templates/blank/src/app/(base)/locators/locator-sync-toast.ts +34 -0
- package/templates/blank/src/app/(base)/locators/modify/[id]/page.tsx +1 -1
- package/templates/blank/src/app/(base)/locators/page.tsx +3 -5
- package/templates/blank/src/app/(base)/locators/picker/page.tsx +6 -0
- package/templates/blank/src/app/(base)/locators/sync-locators-button.tsx +12 -53
- package/templates/blank/src/app/(base)/modules/modify/[id]/page.tsx +11 -5
- package/templates/blank/src/app/(base)/modules/module-form-helpers.ts +12 -0
- package/templates/blank/src/app/(base)/modules/module-form.tsx +14 -19
- package/templates/blank/src/app/(base)/modules/module-helpers.test.ts +48 -0
- package/templates/blank/src/app/(base)/modules/module-helpers.ts +4 -64
- package/templates/blank/src/app/(base)/modules/module-parent-helpers.ts +16 -0
- package/templates/blank/src/app/(base)/modules/module-row-helpers.ts +32 -0
- package/templates/blank/src/app/(base)/modules/module-types.ts +8 -0
- package/templates/blank/src/app/(base)/modules/page.tsx +2 -2
- package/templates/blank/src/app/(base)/reports/[id]/page.tsx +25 -30
- package/templates/blank/src/app/(base)/reports/overview-chart.tsx +49 -49
- package/templates/blank/src/app/(base)/reports/page.tsx +5 -48
- package/templates/blank/src/app/(base)/reports/report-charts.tsx +17 -0
- package/templates/blank/src/app/(base)/reports/report-detail-helpers.ts +27 -54
- package/templates/blank/src/app/(base)/reports/report-metric-card.tsx +3 -3
- package/templates/blank/src/app/(base)/reports/report-table-columns.tsx +14 -46
- package/templates/blank/src/app/(base)/reports/report-table.tsx +5 -55
- package/templates/blank/src/app/(base)/reports/report-view-table-columns.tsx +5 -5
- package/templates/blank/src/app/(base)/reports/report-view-table.tsx +1 -49
- package/templates/blank/src/app/(base)/reports/test-cases/page.tsx +1 -1
- package/templates/blank/src/app/(base)/reports/test-cases/test-cases-metric-table-columns.tsx +115 -115
- package/templates/blank/src/app/(base)/reports/test-cases/test-cases-metric-table.tsx +27 -27
- package/templates/blank/src/app/(base)/reports/test-suites/page.tsx +2 -2
- package/templates/blank/src/app/(base)/reports/test-suites/test-suites-metric-table-columns.tsx +79 -79
- package/templates/blank/src/app/(base)/reports/test-suites/test-suites-metric-table.tsx +27 -27
- package/templates/blank/src/app/(base)/reports/view-logs-button.tsx +1 -1
- package/templates/blank/src/app/(base)/settings/page.tsx +2 -2
- package/templates/blank/src/app/(base)/settings/settings-sync-panel-helpers.tsx +2 -2
- package/templates/blank/src/app/(base)/settings/settings-sync-panel.tsx +7 -13
- package/templates/blank/src/app/(base)/settings/use-settings-sync.ts +0 -1
- package/templates/blank/src/app/(base)/tags/create/page.tsx +1 -1
- package/templates/blank/src/app/(base)/tags/modify/[id]/page.tsx +1 -1
- package/templates/blank/src/app/(base)/tags/page.tsx +2 -2
- package/templates/blank/src/app/(base)/tags/tag-form-helpers.ts +9 -0
- package/templates/blank/src/app/(base)/tags/tag-form.test.tsx +43 -1
- package/templates/blank/src/app/(base)/tags/tag-form.tsx +42 -23
- package/templates/blank/src/app/(base)/tags/tag-table-columns.tsx +63 -63
- package/templates/blank/src/app/(base)/tags/tag-table.tsx +29 -29
- package/templates/blank/src/app/(base)/template-step-groups/create/page.tsx +28 -28
- package/templates/blank/src/app/(base)/template-step-groups/page.tsx +2 -2
- package/templates/blank/src/app/(base)/template-step-groups/template-step-group-form.tsx +10 -15
- package/templates/blank/src/app/(base)/template-step-groups/template-step-group-table-columns.tsx +1 -5
- package/templates/blank/src/app/(base)/template-steps/modify/[id]/page.tsx +13 -7
- package/templates/blank/src/app/(base)/template-steps/page.tsx +2 -2
- package/templates/blank/src/app/(base)/template-steps/paramChip.tsx +20 -13
- package/templates/blank/src/app/(base)/template-steps/template-step-form-helpers.ts +65 -0
- package/templates/blank/src/app/(base)/template-steps/template-step-form.tsx +21 -26
- package/templates/blank/src/app/(base)/template-steps/template-step-helpers.ts +25 -176
- package/templates/blank/src/app/(base)/template-steps/template-step-option-helpers.ts +13 -0
- package/templates/blank/src/app/(base)/template-steps/template-step-row-guards.ts +69 -0
- package/templates/blank/src/app/(base)/template-steps/template-step-table-columns.tsx +7 -4
- package/templates/blank/src/app/(base)/template-steps/template-step-types.ts +31 -0
- package/templates/blank/src/app/(base)/template-test-cases/create/page.tsx +12 -19
- package/templates/blank/src/app/(base)/template-test-cases/create-template-test-case-page-data.test.ts +78 -0
- package/templates/blank/src/app/(base)/template-test-cases/create-template-test-case-page-data.ts +58 -0
- package/templates/blank/src/app/(base)/template-test-cases/modify/[id]/page.tsx +67 -8
- package/templates/blank/src/app/(base)/template-test-cases/page.tsx +2 -2
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-flow.test.tsx +2 -0
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-flow.tsx +19 -4
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-form.test.tsx +6 -0
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-form.tsx +30 -26
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-table-columns.tsx +76 -76
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-table.tsx +32 -32
- package/templates/blank/src/app/(base)/test-cases/create/page.test.tsx +121 -0
- package/templates/blank/src/app/(base)/test-cases/create/page.tsx +27 -5
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-conversion-helpers.ts +27 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.test.ts +2 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.ts +14 -171
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-selection-helpers.ts +74 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-types.ts +24 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/generate/[id]/page.test.tsx +19 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/generate/[id]/page.tsx +2 -93
- package/templates/blank/src/app/(base)/test-cases/create-from-template/page.test.tsx +157 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/page.tsx +113 -10
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-builders.ts +35 -0
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-guards.ts +42 -0
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-helpers.ts +3 -0
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-types.ts +14 -0
- package/templates/blank/src/app/(base)/test-cases/inline-tag-creation-dialog.tsx +47 -0
- package/templates/blank/src/app/(base)/test-cases/inline-test-suite-creation-dialog.tsx +57 -0
- package/templates/blank/src/app/(base)/test-cases/modify/[id]/page.tsx +31 -4
- package/templates/blank/src/app/(base)/test-cases/page.tsx +3 -3
- package/templates/blank/src/app/(base)/test-cases/test-case-flow.test.tsx +24 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-flow.tsx +34 -13
- package/templates/blank/src/app/(base)/test-cases/test-case-form-reducer.test.ts +59 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-form-reducer.ts +203 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-form.test.tsx +340 -32
- package/templates/blank/src/app/(base)/test-cases/test-case-form.tsx +1325 -166
- package/templates/blank/src/app/(base)/test-cases/test-case-resource-rows.ts +9 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-route-helpers.test.ts +4 -1
- package/templates/blank/src/app/(base)/test-cases/test-case-route-helpers.ts +3 -147
- package/templates/blank/src/app/(base)/test-cases/test-case-row-helpers.ts +30 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-shared-resource-rows.ts +55 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-table.tsx +3 -3
- package/templates/blank/src/app/(base)/test-cases/test-case-template-resource-rows.ts +21 -0
- package/templates/blank/src/app/(base)/test-runs/create/page.tsx +8 -16
- package/templates/blank/src/app/(base)/test-runs/create-test-run-page-data.test.ts +60 -0
- package/templates/blank/src/app/(base)/test-runs/create-test-run-page-data.ts +38 -0
- package/templates/blank/src/app/(base)/test-runs/page.tsx +2 -2
- package/templates/blank/src/app/(base)/test-runs/test-run-form-data-helpers.ts +71 -0
- package/templates/blank/src/app/(base)/test-runs/test-run-form-display-helpers.ts +44 -0
- package/templates/blank/src/app/(base)/test-runs/test-run-form-helpers.ts +17 -157
- package/templates/blank/src/app/(base)/test-runs/test-run-form-selection-helpers.ts +46 -0
- package/templates/blank/src/app/(base)/test-runs/test-run-form.tsx +19 -24
- package/templates/blank/src/app/(base)/test-runs/test-run-table-columns.tsx +14 -14
- package/templates/blank/src/app/(base)/test-runs/test-run-table.tsx +61 -60
- package/templates/blank/src/app/(base)/test-suites/editable-test-suite-helpers.ts +17 -0
- package/templates/blank/src/app/(base)/test-suites/page.tsx +5 -5
- package/templates/blank/src/app/(base)/test-suites/test-suite-form-display-helpers.ts +54 -0
- package/templates/blank/src/app/(base)/test-suites/test-suite-form.test.tsx +57 -8
- package/templates/blank/src/app/(base)/test-suites/test-suite-form.tsx +38 -21
- package/templates/blank/src/app/(base)/test-suites/test-suite-helpers.ts +25 -215
- package/templates/blank/src/app/(base)/test-suites/test-suite-row-guards.ts +80 -0
- package/templates/blank/src/app/(base)/test-suites/test-suite-table-columns.tsx +1 -1
- package/templates/blank/src/app/(base)/test-suites/test-suite-table-helpers.ts +57 -0
- package/templates/blank/src/app/(base)/test-suites/test-suite-types.ts +30 -0
- package/templates/blank/src/app/(dashboard-components)/app-drawer.tsx +26 -23
- package/templates/blank/src/app/(dashboard-components)/data-card-grid.tsx +1 -1
- package/templates/blank/src/app/(dashboard-components)/data-card.tsx +30 -26
- package/templates/blank/src/app/(dashboard-components)/execution-health-panel.tsx +42 -42
- package/templates/blank/src/app/(dashboard-components)/ongoing-test-runs-card.tsx +8 -8
- package/templates/blank/src/app/(dashboard-components)/quick-actions-drawer.tsx +66 -42
- package/templates/blank/src/app/api/test-runs/[runId]/download/route.ts +160 -103
- package/templates/blank/src/app/globals.css +11 -0
- package/templates/blank/src/app/layout.tsx +17 -17
- package/templates/blank/src/app/page.tsx +10 -5
- package/templates/blank/src/assets/icons/empty-tube.tsx +23 -23
- package/templates/blank/src/assets/icons/tube-plus.tsx +29 -29
- package/templates/blank/src/components/base-node.tsx +5 -8
- package/templates/blank/src/components/data-state/empty-state.tsx +1 -1
- package/templates/blank/src/components/data-visualization/info-card.tsx +70 -70
- package/templates/blank/src/components/data-visualization/info-grid.tsx +22 -22
- package/templates/blank/src/components/diagram/add-node-prompt-node.tsx +30 -0
- package/templates/blank/src/components/diagram/button-edge.tsx +27 -9
- package/templates/blank/src/components/diagram/dynamic-parameter-field-label.tsx +19 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-field-shell.tsx +30 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-field-types.ts +32 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-fields.tsx +140 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-locator-field.tsx +288 -0
- package/templates/blank/src/components/diagram/dynamic-parameters-helpers.ts +6 -1
- package/templates/blank/src/components/diagram/dynamic-parameters.test.tsx +295 -0
- package/templates/blank/src/components/diagram/dynamic-parameters.tsx +223 -222
- package/templates/blank/src/components/diagram/flow-add-node-prompt-helpers.ts +22 -0
- package/templates/blank/src/components/diagram/flow-block-helpers.ts +86 -0
- package/templates/blank/src/components/diagram/flow-diagram-block-dialog.tsx +56 -0
- package/templates/blank/src/components/diagram/flow-diagram-block-overlays.tsx +65 -0
- package/templates/blank/src/components/diagram/flow-diagram-connection-guards.ts +127 -0
- package/templates/blank/src/components/diagram/flow-diagram-grouping-hints.tsx +38 -0
- package/templates/blank/src/components/diagram/flow-diagram-helpers.test.ts +187 -5
- package/templates/blank/src/components/diagram/flow-diagram-helpers.ts +22 -251
- package/templates/blank/src/components/diagram/flow-diagram-node-search.tsx +108 -0
- package/templates/blank/src/components/diagram/flow-diagram-node-types.tsx +46 -0
- package/templates/blank/src/components/diagram/flow-diagram-toolbar.tsx +88 -0
- package/templates/blank/src/components/diagram/flow-diagram-types.ts +21 -0
- package/templates/blank/src/components/diagram/flow-diagram-view.tsx +179 -0
- package/templates/blank/src/components/diagram/flow-diagram.test.tsx +501 -0
- package/templates/blank/src/components/diagram/flow-diagram.tsx +72 -226
- package/templates/blank/src/components/diagram/flow-node-data-helpers.ts +122 -0
- package/templates/blank/src/components/diagram/flow-node-order-helpers.ts +179 -0
- package/templates/blank/src/components/diagram/flow-node-search-helpers.ts +24 -0
- package/templates/blank/src/components/diagram/node-form-fields-content.tsx +120 -0
- package/templates/blank/src/components/diagram/node-form-fields-props.ts +3 -0
- package/templates/blank/src/components/diagram/node-form-helpers.ts +15 -8
- package/templates/blank/src/components/diagram/node-form-submit.ts +36 -0
- package/templates/blank/src/components/diagram/node-form-template-step-selection.test.ts +42 -0
- package/templates/blank/src/components/diagram/node-form-template-step-selection.ts +40 -0
- package/templates/blank/src/components/diagram/node-form.test.tsx +172 -25
- package/templates/blank/src/components/diagram/node-form.tsx +108 -158
- package/templates/blank/src/components/diagram/options-header-gherkin-step.tsx +72 -0
- package/templates/blank/src/components/diagram/options-header-node.test.tsx +210 -0
- package/templates/blank/src/components/diagram/options-header-node.tsx +226 -32
- package/templates/blank/src/components/diagram/template-step-combobox.test.tsx +144 -0
- package/templates/blank/src/components/diagram/template-step-combobox.tsx +176 -39
- package/templates/blank/src/components/diagram/use-flow-diagram-block-grouping.ts +130 -0
- package/templates/blank/src/components/diagram/use-flow-diagram-search.ts +114 -0
- package/templates/blank/src/components/diagram/use-flow-diagram.ts +384 -0
- package/templates/blank/src/components/form/error-message.tsx +7 -7
- package/templates/blank/src/components/loading-skeleton/data-table/data-table-skeleton.tsx +1 -1
- package/templates/blank/src/components/loading-skeleton/form/button-skeleton.tsx +8 -8
- package/templates/blank/src/components/loading-skeleton/form/icon-button-skeleton.tsx +1 -1
- package/templates/blank/src/components/loading-skeleton/form/text-input-skeleton.tsx +8 -8
- package/templates/blank/src/components/loading-skeleton/visualization/table-skeleton.tsx +14 -14
- package/templates/blank/src/components/logo.tsx +1 -1
- package/templates/blank/src/components/navigation/command-badge.tsx +1 -1
- package/templates/blank/src/components/navigation/command-chain-input.tsx +5 -10
- package/templates/blank/src/components/navigation/entity-search-command.tsx +47 -24
- package/templates/blank/src/components/navigation/nav-command-search.tsx +5 -5
- package/templates/blank/src/components/navigation/nav-command.tsx +8 -8
- package/templates/blank/src/components/navigation/nav-link.tsx +60 -60
- package/templates/blank/src/components/navigation/nav-menu-card-deck.tsx +73 -70
- package/templates/blank/src/components/reports/test-case-logs-modal.tsx +10 -10
- package/templates/blank/src/components/table/table-actions.test.tsx +53 -0
- package/templates/blank/src/components/table/table-actions.tsx +14 -10
- package/templates/blank/src/components/test-case/test-case-form-helpers.test.ts +1 -0
- package/templates/blank/src/components/test-case/test-case-form-helpers.ts +40 -45
- package/templates/blank/src/components/test-case/test-case-picker.test.tsx +14 -11
- package/templates/blank/src/components/test-case/test-case-picker.tsx +140 -112
- package/templates/blank/src/components/test-case/test-scenario-preview.tsx +69 -16
- package/templates/blank/src/components/test-run/download-logs-button.tsx +13 -26
- package/templates/blank/src/components/test-run/log-viewer-events.ts +7 -0
- package/templates/blank/src/components/test-run/log-viewer-helpers.ts +4 -80
- package/templates/blank/src/components/test-run/log-viewer-parsing.ts +28 -0
- package/templates/blank/src/components/test-run/log-viewer-status.ts +35 -0
- package/templates/blank/src/components/test-run/log-viewer-types.ts +7 -0
- package/templates/blank/src/components/test-run/log-viewer.tsx +9 -9
- package/templates/blank/src/components/test-run/test-run-details-guards.ts +85 -0
- package/templates/blank/src/components/test-run/test-run-details-helpers.test.ts +102 -0
- package/templates/blank/src/components/test-run/test-run-details-helpers.ts +10 -208
- package/templates/blank/src/components/test-run/test-run-details-progress.ts +26 -0
- package/templates/blank/src/components/test-run/test-run-details-status.ts +70 -0
- package/templates/blank/src/components/test-run/test-run-details-types.ts +21 -0
- package/templates/blank/src/components/test-run/test-run-details.test.tsx +1 -6
- package/templates/blank/src/components/test-run/test-run-details.tsx +26 -54
- package/templates/blank/src/components/test-run/test-run-header.test.tsx +13 -18
- package/templates/blank/src/components/test-run/trace-viewer-button-label.tsx +57 -0
- package/templates/blank/src/components/test-run/view-report-button.tsx +60 -64
- package/templates/blank/src/components/test-suite/test-suite-picker-helpers.test.ts +27 -1
- package/templates/blank/src/components/test-suite/test-suite-picker-helpers.ts +80 -1
- package/templates/blank/src/components/test-suite/test-suite-picker-suite-row-header.tsx +87 -0
- package/templates/blank/src/components/test-suite/test-suite-picker-suite-row.tsx +61 -0
- package/templates/blank/src/components/test-suite/test-suite-picker-test-case-list.tsx +95 -0
- package/templates/blank/src/components/test-suite/test-suite-picker.tsx +134 -275
- package/templates/blank/src/components/typography/page-header-subtitle.tsx +7 -7
- package/templates/blank/src/components/typography/page-header.tsx +7 -7
- package/templates/blank/src/components/ui/alert.tsx +12 -18
- package/templates/blank/src/components/ui/badge.tsx +1 -1
- package/templates/blank/src/components/ui/button.tsx +13 -10
- package/templates/blank/src/components/ui/calendar.tsx +3 -3
- package/templates/blank/src/components/ui/card.tsx +16 -34
- package/templates/blank/src/components/ui/chart-utils.ts +43 -0
- package/templates/blank/src/components/ui/chart.tsx +217 -304
- package/templates/blank/src/components/ui/checkbox.tsx +20 -17
- package/templates/blank/src/components/ui/command.tsx +63 -96
- package/templates/blank/src/components/ui/data-table-column-header.tsx +3 -3
- package/templates/blank/src/components/ui/data-table-pagination.tsx +7 -7
- package/templates/blank/src/components/ui/data-table-view-options.tsx +20 -15
- package/templates/blank/src/components/ui/data-table.tsx +22 -19
- package/templates/blank/src/components/ui/dialog.tsx +45 -63
- package/templates/blank/src/components/ui/dropdown-menu.tsx +76 -148
- package/templates/blank/src/components/ui/empty.tsx +21 -40
- package/templates/blank/src/components/ui/input.tsx +13 -15
- package/templates/blank/src/components/ui/kbd.tsx +7 -13
- package/templates/blank/src/components/ui/label.tsx +7 -6
- package/templates/blank/src/components/ui/multi-select-with-preview.tsx +20 -7
- package/templates/blank/src/components/ui/multi-select.tsx +7 -5
- package/templates/blank/src/components/ui/picker-browse-shell.tsx +99 -0
- package/templates/blank/src/components/ui/popover.tsx +21 -19
- package/templates/blank/src/components/ui/progress.tsx +14 -15
- package/templates/blank/src/components/ui/radio-group.tsx +14 -25
- package/templates/blank/src/components/ui/scroll-area.tsx +32 -29
- package/templates/blank/src/components/ui/select.tsx +99 -125
- package/templates/blank/src/components/ui/separator.tsx +16 -12
- package/templates/blank/src/components/ui/sheet.tsx +92 -0
- package/templates/blank/src/components/ui/skeleton.tsx +7 -7
- package/templates/blank/src/components/ui/table.tsx +24 -49
- package/templates/blank/src/components/ui/tabs.tsx +36 -41
- package/templates/blank/src/components/ui/textarea.tsx +11 -15
- package/templates/blank/src/components/ui/toast.tsx +56 -62
- package/templates/blank/src/components/ui/toaster.tsx +26 -26
- package/templates/blank/src/components/ui/tooltip.tsx +23 -20
- package/templates/blank/src/components/user-prompt/delete-prompt.tsx +5 -5
- package/templates/blank/src/constants/form-opts/diagram/node-form.ts +11 -28
- package/templates/blank/src/constants/form-opts/environment-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/locator-group-form-opts.ts +1 -7
- package/templates/blank/src/constants/form-opts/module-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/tag-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/template-selection-form-opts.ts +0 -11
- package/templates/blank/src/constants/form-opts/template-step-group-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/template-test-case-form-opts.ts +3 -33
- package/templates/blank/src/constants/form-opts/template-test-step-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/test-case-form-opts.ts +3 -35
- package/templates/blank/src/constants/form-opts/test-case-step-form-opts.ts +27 -0
- package/templates/blank/src/constants/form-opts/test-run-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/test-suite-form-opts.ts +1 -1
- package/templates/blank/src/hooks/use-toast.ts +1 -1
- package/templates/blank/src/lib/automation/automation-path-roots.ts +1 -9
- package/templates/blank/src/lib/bidirectional-sync.ts +116 -107
- package/templates/blank/src/lib/database-sync.ts +142 -190
- package/templates/blank/src/lib/environment-file-utils.ts +3 -115
- package/templates/blank/src/lib/executor/local-executor-adapter.ts +1 -1
- package/templates/blank/src/lib/form/tanstack-form-action.ts +7 -0
- package/templates/blank/src/lib/form/tanstack-form.tsx +18 -0
- package/templates/blank/src/lib/gherkin-parser.test.ts +7 -7
- package/templates/blank/src/lib/gherkin-parser.ts +132 -145
- package/templates/blank/src/lib/gherkin-step-format.ts +80 -0
- package/templates/blank/src/lib/jsdoc/template-step-jsdoc.ts +262 -0
- package/templates/blank/src/lib/locator-group-file-utils.ts +2 -20
- package/templates/blank/src/lib/locator-picker/suggestions.ts +7 -4
- package/templates/blank/src/lib/metrics/metric-calculator.test.ts +156 -0
- package/templates/blank/src/lib/metrics/metric-calculator.ts +251 -273
- package/templates/blank/src/lib/module-hierarchy-builder.ts +1 -10
- package/templates/blank/src/lib/path-helpers/feature-path.ts +10 -0
- package/templates/blank/src/lib/path-helpers/module-path.ts +0 -50
- package/templates/blank/src/lib/process/task-spawner.ts +50 -27
- package/templates/blank/src/lib/sync/projected-feature-utils.ts +2 -42
- package/templates/blank/src/lib/sync/sync-pending-counts.ts +126 -274
- package/templates/blank/src/lib/sync/sync-registry.ts +2 -2
- package/templates/blank/src/lib/tag-filters.ts +11 -0
- package/templates/blank/src/lib/tag-identifiers.ts +18 -0
- package/templates/blank/src/lib/tag-utils.ts +2 -28
- package/templates/blank/src/lib/template-automation-paths.ts +34 -0
- package/templates/blank/src/lib/template-path-exclusions.ts +34 -0
- package/templates/blank/src/lib/template-sync-utils.d.ts +6 -6
- package/templates/blank/src/lib/template-sync-utils.ts +2 -65
- package/templates/blank/src/lib/test-case-utils.ts +6 -6
- package/templates/blank/src/lib/test-run/log-formatter.ts +83 -83
- package/templates/blank/src/lib/test-run/matching.test.ts +77 -0
- package/templates/blank/src/lib/test-run/matching.ts +2 -2
- package/templates/blank/src/lib/test-run/report-parser.test.ts +113 -0
- package/templates/blank/src/lib/test-run/report-parser.ts +352 -352
- package/templates/blank/src/lib/test-suite-identifier-service.ts +1 -1
- package/templates/blank/src/lib/transformers/gherkin-converter.ts +42 -42
- package/templates/blank/src/lib/transformers/key-to-icon-transformer.tsx +95 -95
- package/templates/blank/src/lib/transformers/template-test-case-converter.ts +13 -64
- package/templates/blank/src/lib/utils/node-param-validation.ts +81 -81
- package/templates/blank/src/lib/utils/template-step-file-generator.ts +2 -19
- package/templates/blank/src/lib/utils/template-step-file-manager-intelligent.ts +1 -355
- package/templates/blank/src/lib/utils/template-step-function-bounds.test.ts +48 -0
- package/templates/blank/src/lib/utils/template-step-function-bounds.ts +138 -0
- package/templates/blank/src/lib/utils.ts +0 -4
- package/templates/blank/src/services/locator/locator-service.ts +22 -6
- package/templates/blank/src/services/report/report-service.ts +249 -237
- package/templates/blank/src/services/tag/tag-service.test.ts +140 -2
- package/templates/blank/src/services/tag/tag-service.ts +71 -0
- package/templates/blank/src/services/template-test-case/template-test-case-service.ts +34 -2
- package/templates/blank/src/services/test-case/test-case-service.test.ts +1 -0
- package/templates/blank/src/services/test-case/test-case-service.ts +39 -2
- package/templates/blank/src/services/test-run/test-run-service.ts +146 -119
- package/templates/blank/src/test/motion-react-vitest-mocks.ts +18 -0
- package/templates/blank/src/test/setup-motion-react-mocks.ts +4 -0
- package/templates/blank/src/types/diagram/diagram.ts +8 -0
- package/templates/blank/src/types/diagram/template-step.ts +5 -2
- package/templates/blank/src/types/report.ts +84 -0
- package/templates/blank/tsconfig.json +1 -1
- package/templates/default/next-env.d.ts +6 -0
- package/templates/default/packages/locator-picker-companion/dist/cli.d.ts +1 -0
- package/templates/default/packages/locator-picker-companion/dist/cli.js +302 -0
- package/templates/default/packages/locator-picker-companion/dist/index.d.ts +3 -0
- package/templates/default/packages/locator-picker-companion/dist/index.js +3 -0
- package/templates/default/packages/locator-picker-companion/dist/injected-picker-script.d.ts +1 -0
- package/templates/default/packages/locator-picker-companion/dist/injected-picker-script.js +615 -0
- package/templates/default/packages/locator-picker-companion/dist/launcher.d.ts +11 -0
- package/templates/default/packages/locator-picker-companion/dist/launcher.js +59 -0
- package/templates/default/packages/locator-picker-companion/dist/selector-generator.d.ts +3 -0
- package/templates/default/packages/locator-picker-companion/dist/selector-generator.js +257 -0
- package/templates/default/packages/locator-picker-companion/dist/session-file.d.ts +22 -0
- package/templates/default/packages/locator-picker-companion/dist/session-file.js +150 -0
- package/templates/default/packages/locator-picker-companion/dist/types.d.ts +31 -0
- package/templates/default/packages/locator-picker-companion/dist/types.js +1 -0
- package/templates/default/prisma/dev.db +0 -0
- package/templates/starter/.env.example +2 -2
- package/templates/starter/automation/steps/actions/click.step.ts +58 -58
- package/templates/starter/automation/steps/actions/hover.step.ts +27 -27
- package/templates/starter/automation/steps/actions/navigation.step.ts +70 -70
- package/templates/starter/automation/steps/actions/random_data.step.ts +142 -142
- package/templates/starter/automation/steps/actions/store.step.ts +1 -80
- package/templates/starter/automation/steps/actions/wait.step.ts +2 -105
- package/templates/starter/automation/steps/validations/active_state_assertion.step.ts +30 -30
- package/templates/starter/automation/steps/validations/navigation_assertion.step.ts +22 -22
- package/templates/starter/automation/steps/validations/text_assertion.step.ts +107 -107
- package/templates/starter/automation/steps/validations/visibility_assertion.step.ts +26 -26
- package/templates/starter/components.json +24 -24
- package/templates/starter/cucumber.mjs +16 -16
- package/templates/starter/gitignore +6 -0
- package/templates/starter/next-env.d.ts +6 -6
- package/templates/starter/package-lock.json +2274 -1019
- package/templates/starter/package.json +27 -18
- package/templates/starter/packages/cucumber-runtime/package.json +13 -13
- package/templates/starter/packages/cucumber-runtime/src/cache.util.ts +93 -93
- package/templates/starter/packages/cucumber-runtime/src/cli.ts +68 -68
- package/templates/starter/packages/cucumber-runtime/src/environment.util.ts +21 -21
- package/templates/starter/packages/cucumber-runtime/src/executor.ts +32 -32
- package/templates/starter/packages/cucumber-runtime/src/index.ts +17 -17
- package/templates/starter/packages/cucumber-runtime/src/locator.util.ts +234 -234
- package/templates/starter/packages/cucumber-runtime/src/parameter-types.ts +7 -7
- package/templates/starter/packages/cucumber-runtime/src/random-data.util.ts +35 -35
- package/templates/starter/packages/cucumber-runtime/src/types.ts +13 -13
- package/templates/starter/packages/cucumber-runtime/src/world.ts +44 -44
- package/templates/starter/packages/cucumber-runtime/tsconfig.json +11 -11
- package/templates/starter/postcss.config.mjs +8 -8
- package/templates/starter/prisma/dev.db +0 -0
- package/templates/starter/prisma/migrations/20251104113456_add_type_for_template_step_groups/migration.sql +16 -16
- package/templates/starter/prisma/migrations/20251104170946_add_tags_to_test_suite_and_test_case/migration.sql +27 -27
- package/templates/starter/prisma/migrations/20251112190024_add_cascade_delete_to_test_run_test_case/migration.sql +17 -17
- package/templates/starter/prisma/migrations/20251113181100_add_test_run_log/migration.sql +12 -12
- package/templates/starter/prisma/migrations/20251119191838_add_tag_type/migration.sql +28 -28
- package/templates/starter/prisma/migrations/20251121164059_add_conflict_resolution/migration.sql +12 -12
- package/templates/starter/prisma/migrations/20251223183400_add_report_model_to_db_schema/migration.sql +10 -10
- package/templates/starter/prisma/migrations/20251223183637_add_report_test_case_entity_for_storing_test_results_for_individual_test_cases/migration.sql +10 -10
- package/templates/starter/prisma/migrations/20251224083549_add_comprehensive_report_storage/migration.sql +108 -108
- package/templates/starter/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql +55 -55
- package/templates/starter/prisma/migrations/20251230124637_add_unique_constraint_to_test_run_name/migration.sql +27 -27
- package/templates/starter/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql +59 -59
- package/templates/starter/prisma/migrations/20260127172022_add_cascade_delete_to_step_parameters/migration.sql +34 -34
- package/templates/starter/prisma/migrations/20260313093000_add_report_step_screenshot_path/migration.sql +1 -1
- package/templates/starter/prisma/migrations/20260507000000_add_flow_builder_node_grouping/migration.sql +34 -0
- package/templates/starter/prisma/schema.prisma +36 -0
- package/templates/starter/scripts/lib/jsdoc-parser.test.ts +12 -0
- package/templates/starter/scripts/lib/jsdoc-parser.ts +5 -88
- package/templates/starter/scripts/lib/step-file-parser.ts +111 -178
- package/templates/starter/scripts/lib/template-sync-utils.test.ts +35 -0
- package/templates/starter/scripts/run-fallow-commit.mjs +23 -0
- package/templates/starter/scripts/setup-env.ts +0 -0
- package/templates/starter/scripts/sync-tags.ts +1 -1
- package/templates/starter/scripts/sync-test-suites.ts +233 -162
- package/templates/starter/src/actions/dashboard/dashboard-actions.ts +0 -7
- package/templates/starter/src/actions/locator-picker/locator-picker-actions.test.ts +10 -0
- package/templates/starter/src/actions/locator-picker/locator-picker-actions.ts +5 -0
- package/templates/starter/src/actions/server-action-boundary.test.ts +794 -0
- package/templates/starter/src/actions/test-suite/test-suite-actions.ts +2 -1
- package/templates/starter/src/app/(base)/environments/create/page.tsx +28 -28
- package/templates/starter/src/app/(base)/environments/environment-form.tsx +16 -23
- package/templates/starter/src/app/(base)/environments/page.tsx +2 -2
- package/templates/starter/src/app/(base)/layout.tsx +10 -10
- package/templates/starter/src/app/(base)/locator-groups/create/page.tsx +1 -1
- package/templates/starter/src/app/(base)/locator-groups/locator-group-form.tsx +24 -24
- package/templates/starter/src/app/(base)/locator-groups/locator-group-table-columns.tsx +77 -77
- package/templates/starter/src/app/(base)/locator-groups/locator-group-table.tsx +28 -28
- package/templates/starter/src/app/(base)/locator-groups/modify/[id]/page.tsx +46 -46
- package/templates/starter/src/app/(base)/locator-groups/page.tsx +3 -3
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-helpers.ts +34 -333
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-response.test.ts +85 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-response.ts +125 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-state.ts +227 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-types.ts +68 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace.test.tsx +73 -1
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace.tsx +19 -16
- package/templates/starter/src/app/(base)/locators/create/page.tsx +4 -8
- package/templates/starter/src/app/(base)/locators/create/use-locator-workspace.ts +15 -2
- package/templates/starter/src/app/(base)/locators/locator-file-sync.test.ts +45 -0
- package/templates/starter/src/app/(base)/locators/locator-file-sync.ts +22 -0
- package/templates/starter/src/app/(base)/locators/locator-sync-toast.ts +34 -0
- package/templates/starter/src/app/(base)/locators/modify/[id]/page.tsx +1 -1
- package/templates/starter/src/app/(base)/locators/page.tsx +3 -5
- package/templates/starter/src/app/(base)/locators/picker/page.tsx +6 -0
- package/templates/starter/src/app/(base)/locators/sync-locators-button.tsx +12 -53
- package/templates/starter/src/app/(base)/modules/modify/[id]/page.tsx +11 -5
- package/templates/starter/src/app/(base)/modules/module-form-helpers.ts +12 -0
- package/templates/starter/src/app/(base)/modules/module-form.tsx +14 -19
- package/templates/starter/src/app/(base)/modules/module-helpers.test.ts +48 -0
- package/templates/starter/src/app/(base)/modules/module-helpers.ts +4 -64
- package/templates/starter/src/app/(base)/modules/module-parent-helpers.ts +16 -0
- package/templates/starter/src/app/(base)/modules/module-row-helpers.ts +32 -0
- package/templates/starter/src/app/(base)/modules/module-types.ts +8 -0
- package/templates/starter/src/app/(base)/modules/page.tsx +2 -2
- package/templates/starter/src/app/(base)/reports/[id]/page.tsx +25 -30
- package/templates/starter/src/app/(base)/reports/overview-chart.tsx +49 -49
- package/templates/starter/src/app/(base)/reports/page.tsx +5 -48
- package/templates/starter/src/app/(base)/reports/report-charts.tsx +17 -0
- package/templates/starter/src/app/(base)/reports/report-detail-helpers.ts +27 -54
- package/templates/starter/src/app/(base)/reports/report-metric-card.tsx +3 -3
- package/templates/starter/src/app/(base)/reports/report-table-columns.tsx +14 -46
- package/templates/starter/src/app/(base)/reports/report-table.tsx +5 -55
- package/templates/starter/src/app/(base)/reports/report-view-table-columns.tsx +5 -5
- package/templates/starter/src/app/(base)/reports/report-view-table.tsx +1 -49
- package/templates/starter/src/app/(base)/reports/test-cases/page.tsx +1 -1
- package/templates/starter/src/app/(base)/reports/test-cases/test-cases-metric-table-columns.tsx +115 -115
- package/templates/starter/src/app/(base)/reports/test-cases/test-cases-metric-table.tsx +27 -27
- package/templates/starter/src/app/(base)/reports/test-suites/page.tsx +2 -2
- package/templates/starter/src/app/(base)/reports/test-suites/test-suites-metric-table-columns.tsx +79 -79
- package/templates/starter/src/app/(base)/reports/test-suites/test-suites-metric-table.tsx +27 -27
- package/templates/starter/src/app/(base)/reports/view-logs-button.tsx +1 -1
- package/templates/starter/src/app/(base)/settings/page.tsx +2 -2
- package/templates/starter/src/app/(base)/settings/settings-sync-panel-helpers.tsx +2 -2
- package/templates/starter/src/app/(base)/settings/settings-sync-panel.tsx +7 -13
- package/templates/starter/src/app/(base)/settings/use-settings-sync.ts +0 -1
- package/templates/starter/src/app/(base)/tags/create/page.tsx +1 -1
- package/templates/starter/src/app/(base)/tags/modify/[id]/page.tsx +1 -1
- package/templates/starter/src/app/(base)/tags/page.tsx +2 -2
- package/templates/starter/src/app/(base)/tags/tag-form-helpers.ts +9 -0
- package/templates/starter/src/app/(base)/tags/tag-form.test.tsx +43 -1
- package/templates/starter/src/app/(base)/tags/tag-form.tsx +42 -23
- package/templates/starter/src/app/(base)/tags/tag-table-columns.tsx +63 -63
- package/templates/starter/src/app/(base)/tags/tag-table.tsx +29 -29
- package/templates/starter/src/app/(base)/template-step-groups/create/page.tsx +28 -28
- package/templates/starter/src/app/(base)/template-step-groups/page.tsx +2 -2
- package/templates/starter/src/app/(base)/template-step-groups/template-step-group-form.tsx +10 -15
- package/templates/starter/src/app/(base)/template-step-groups/template-step-group-table-columns.tsx +1 -5
- package/templates/starter/src/app/(base)/template-steps/modify/[id]/page.tsx +13 -7
- package/templates/starter/src/app/(base)/template-steps/page.tsx +2 -2
- package/templates/starter/src/app/(base)/template-steps/paramChip.tsx +20 -13
- package/templates/starter/src/app/(base)/template-steps/template-step-form-helpers.ts +65 -0
- package/templates/starter/src/app/(base)/template-steps/template-step-form.tsx +21 -26
- package/templates/starter/src/app/(base)/template-steps/template-step-helpers.ts +25 -176
- package/templates/starter/src/app/(base)/template-steps/template-step-option-helpers.ts +13 -0
- package/templates/starter/src/app/(base)/template-steps/template-step-row-guards.ts +69 -0
- package/templates/starter/src/app/(base)/template-steps/template-step-table-columns.tsx +7 -4
- package/templates/starter/src/app/(base)/template-steps/template-step-types.ts +31 -0
- package/templates/starter/src/app/(base)/template-test-cases/create/page.tsx +12 -19
- package/templates/starter/src/app/(base)/template-test-cases/create-template-test-case-page-data.test.ts +78 -0
- package/templates/starter/src/app/(base)/template-test-cases/create-template-test-case-page-data.ts +58 -0
- package/templates/starter/src/app/(base)/template-test-cases/modify/[id]/page.tsx +67 -8
- package/templates/starter/src/app/(base)/template-test-cases/page.tsx +2 -2
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-flow.test.tsx +2 -0
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-flow.tsx +19 -4
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-form.test.tsx +6 -0
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-form.tsx +30 -26
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-table-columns.tsx +76 -76
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-table.tsx +32 -32
- package/templates/starter/src/app/(base)/test-cases/create/page.test.tsx +121 -0
- package/templates/starter/src/app/(base)/test-cases/create/page.tsx +27 -5
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-conversion-helpers.ts +27 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.test.ts +2 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.ts +14 -171
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-selection-helpers.ts +74 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-types.ts +24 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/generate/[id]/page.test.tsx +19 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/generate/[id]/page.tsx +2 -93
- package/templates/starter/src/app/(base)/test-cases/create-from-template/page.test.tsx +157 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/page.tsx +113 -10
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-builders.ts +35 -0
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-guards.ts +42 -0
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-helpers.ts +3 -0
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-types.ts +14 -0
- package/templates/starter/src/app/(base)/test-cases/inline-tag-creation-dialog.tsx +47 -0
- package/templates/starter/src/app/(base)/test-cases/inline-test-suite-creation-dialog.tsx +57 -0
- package/templates/starter/src/app/(base)/test-cases/modify/[id]/page.tsx +31 -4
- package/templates/starter/src/app/(base)/test-cases/page.tsx +3 -3
- package/templates/starter/src/app/(base)/test-cases/test-case-flow.test.tsx +24 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-flow.tsx +34 -13
- package/templates/starter/src/app/(base)/test-cases/test-case-form-reducer.test.ts +59 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-form-reducer.ts +203 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-form.test.tsx +340 -32
- package/templates/starter/src/app/(base)/test-cases/test-case-form.tsx +1325 -166
- package/templates/starter/src/app/(base)/test-cases/test-case-resource-rows.ts +9 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-route-helpers.test.ts +4 -1
- package/templates/starter/src/app/(base)/test-cases/test-case-route-helpers.ts +3 -147
- package/templates/starter/src/app/(base)/test-cases/test-case-row-helpers.ts +30 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-shared-resource-rows.ts +55 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-table.tsx +3 -3
- package/templates/starter/src/app/(base)/test-cases/test-case-template-resource-rows.ts +21 -0
- package/templates/starter/src/app/(base)/test-runs/create/page.tsx +8 -16
- package/templates/starter/src/app/(base)/test-runs/create-test-run-page-data.test.ts +60 -0
- package/templates/starter/src/app/(base)/test-runs/create-test-run-page-data.ts +38 -0
- package/templates/starter/src/app/(base)/test-runs/page.tsx +2 -2
- package/templates/starter/src/app/(base)/test-runs/test-run-form-data-helpers.ts +71 -0
- package/templates/starter/src/app/(base)/test-runs/test-run-form-display-helpers.ts +44 -0
- package/templates/starter/src/app/(base)/test-runs/test-run-form-helpers.ts +17 -157
- package/templates/starter/src/app/(base)/test-runs/test-run-form-selection-helpers.ts +46 -0
- package/templates/starter/src/app/(base)/test-runs/test-run-form.tsx +19 -24
- package/templates/starter/src/app/(base)/test-runs/test-run-table-columns.tsx +14 -14
- package/templates/starter/src/app/(base)/test-runs/test-run-table.tsx +61 -60
- package/templates/starter/src/app/(base)/test-suites/editable-test-suite-helpers.ts +17 -0
- package/templates/starter/src/app/(base)/test-suites/page.tsx +5 -5
- package/templates/starter/src/app/(base)/test-suites/test-suite-form-display-helpers.ts +54 -0
- package/templates/starter/src/app/(base)/test-suites/test-suite-form.test.tsx +57 -8
- package/templates/starter/src/app/(base)/test-suites/test-suite-form.tsx +38 -21
- package/templates/starter/src/app/(base)/test-suites/test-suite-helpers.ts +25 -215
- package/templates/starter/src/app/(base)/test-suites/test-suite-row-guards.ts +80 -0
- package/templates/starter/src/app/(base)/test-suites/test-suite-table-columns.tsx +1 -1
- package/templates/starter/src/app/(base)/test-suites/test-suite-table-helpers.ts +57 -0
- package/templates/starter/src/app/(base)/test-suites/test-suite-types.ts +30 -0
- package/templates/starter/src/app/(dashboard-components)/app-drawer.tsx +26 -23
- package/templates/starter/src/app/(dashboard-components)/data-card-grid.tsx +1 -1
- package/templates/starter/src/app/(dashboard-components)/data-card.tsx +30 -26
- package/templates/starter/src/app/(dashboard-components)/execution-health-panel.tsx +42 -42
- package/templates/starter/src/app/(dashboard-components)/ongoing-test-runs-card.tsx +8 -8
- package/templates/starter/src/app/(dashboard-components)/quick-actions-drawer.tsx +66 -42
- package/templates/starter/src/app/api/test-runs/[runId]/download/route.ts +160 -103
- package/templates/starter/src/app/globals.css +11 -0
- package/templates/starter/src/app/layout.tsx +17 -17
- package/templates/starter/src/app/page.tsx +10 -5
- package/templates/starter/src/assets/icons/empty-tube.tsx +23 -23
- package/templates/starter/src/assets/icons/tube-plus.tsx +29 -29
- package/templates/starter/src/components/base-node.tsx +5 -8
- package/templates/starter/src/components/data-state/empty-state.tsx +1 -1
- package/templates/starter/src/components/data-visualization/info-card.tsx +70 -70
- package/templates/starter/src/components/data-visualization/info-grid.tsx +22 -22
- package/templates/starter/src/components/diagram/add-node-prompt-node.tsx +30 -0
- package/templates/starter/src/components/diagram/button-edge.tsx +27 -9
- package/templates/starter/src/components/diagram/dynamic-parameter-field-label.tsx +19 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-field-shell.tsx +30 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-field-types.ts +32 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-fields.tsx +140 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-locator-field.tsx +288 -0
- package/templates/starter/src/components/diagram/dynamic-parameters-helpers.ts +6 -1
- package/templates/starter/src/components/diagram/dynamic-parameters.test.tsx +295 -0
- package/templates/starter/src/components/diagram/dynamic-parameters.tsx +223 -222
- package/templates/starter/src/components/diagram/flow-add-node-prompt-helpers.ts +22 -0
- package/templates/starter/src/components/diagram/flow-block-helpers.ts +86 -0
- package/templates/starter/src/components/diagram/flow-diagram-block-dialog.tsx +56 -0
- package/templates/starter/src/components/diagram/flow-diagram-block-overlays.tsx +65 -0
- package/templates/starter/src/components/diagram/flow-diagram-connection-guards.ts +127 -0
- package/templates/starter/src/components/diagram/flow-diagram-grouping-hints.tsx +38 -0
- package/templates/starter/src/components/diagram/flow-diagram-helpers.test.ts +187 -5
- package/templates/starter/src/components/diagram/flow-diagram-helpers.ts +22 -251
- package/templates/starter/src/components/diagram/flow-diagram-node-search.tsx +108 -0
- package/templates/starter/src/components/diagram/flow-diagram-node-types.tsx +46 -0
- package/templates/starter/src/components/diagram/flow-diagram-toolbar.tsx +88 -0
- package/templates/starter/src/components/diagram/flow-diagram-types.ts +21 -0
- package/templates/starter/src/components/diagram/flow-diagram-view.tsx +179 -0
- package/templates/starter/src/components/diagram/flow-diagram.test.tsx +501 -0
- package/templates/starter/src/components/diagram/flow-diagram.tsx +72 -226
- package/templates/starter/src/components/diagram/flow-node-data-helpers.ts +122 -0
- package/templates/starter/src/components/diagram/flow-node-order-helpers.ts +179 -0
- package/templates/starter/src/components/diagram/flow-node-search-helpers.ts +24 -0
- package/templates/starter/src/components/diagram/node-form-fields-content.tsx +120 -0
- package/templates/starter/src/components/diagram/node-form-fields-props.ts +3 -0
- package/templates/starter/src/components/diagram/node-form-helpers.ts +15 -8
- package/templates/starter/src/components/diagram/node-form-submit.ts +36 -0
- package/templates/starter/src/components/diagram/node-form-template-step-selection.test.ts +42 -0
- package/templates/starter/src/components/diagram/node-form-template-step-selection.ts +40 -0
- package/templates/starter/src/components/diagram/node-form.test.tsx +172 -25
- package/templates/starter/src/components/diagram/node-form.tsx +108 -158
- package/templates/starter/src/components/diagram/options-header-gherkin-step.tsx +72 -0
- package/templates/starter/src/components/diagram/options-header-node.test.tsx +210 -0
- package/templates/starter/src/components/diagram/options-header-node.tsx +226 -32
- package/templates/starter/src/components/diagram/template-step-combobox.test.tsx +144 -0
- package/templates/starter/src/components/diagram/template-step-combobox.tsx +176 -39
- package/templates/starter/src/components/diagram/use-flow-diagram-block-grouping.ts +130 -0
- package/templates/starter/src/components/diagram/use-flow-diagram-search.ts +114 -0
- package/templates/starter/src/components/diagram/use-flow-diagram.ts +384 -0
- package/templates/starter/src/components/form/error-message.tsx +7 -7
- package/templates/starter/src/components/loading-skeleton/data-table/data-table-skeleton.tsx +1 -1
- package/templates/starter/src/components/loading-skeleton/form/button-skeleton.tsx +8 -8
- package/templates/starter/src/components/loading-skeleton/form/icon-button-skeleton.tsx +1 -1
- package/templates/starter/src/components/loading-skeleton/form/text-input-skeleton.tsx +8 -8
- package/templates/starter/src/components/loading-skeleton/visualization/table-skeleton.tsx +14 -14
- package/templates/starter/src/components/logo.tsx +1 -1
- package/templates/starter/src/components/navigation/command-badge.tsx +1 -1
- package/templates/starter/src/components/navigation/command-chain-input.tsx +5 -10
- package/templates/starter/src/components/navigation/entity-search-command.tsx +47 -24
- package/templates/starter/src/components/navigation/nav-command-search.tsx +5 -5
- package/templates/starter/src/components/navigation/nav-command.tsx +8 -8
- package/templates/starter/src/components/navigation/nav-link.tsx +60 -60
- package/templates/starter/src/components/navigation/nav-menu-card-deck.tsx +73 -70
- package/templates/starter/src/components/reports/test-case-logs-modal.tsx +10 -10
- package/templates/starter/src/components/table/table-actions.test.tsx +53 -0
- package/templates/starter/src/components/table/table-actions.tsx +14 -10
- package/templates/starter/src/components/test-case/test-case-form-helpers.test.ts +1 -0
- package/templates/starter/src/components/test-case/test-case-form-helpers.ts +40 -45
- package/templates/starter/src/components/test-case/test-case-picker.test.tsx +14 -11
- package/templates/starter/src/components/test-case/test-case-picker.tsx +140 -112
- package/templates/starter/src/components/test-case/test-scenario-preview.tsx +69 -16
- package/templates/starter/src/components/test-run/download-logs-button.tsx +13 -26
- package/templates/starter/src/components/test-run/log-viewer-events.ts +7 -0
- package/templates/starter/src/components/test-run/log-viewer-helpers.ts +4 -80
- package/templates/starter/src/components/test-run/log-viewer-parsing.ts +28 -0
- package/templates/starter/src/components/test-run/log-viewer-status.ts +35 -0
- package/templates/starter/src/components/test-run/log-viewer-types.ts +7 -0
- package/templates/starter/src/components/test-run/log-viewer.tsx +9 -9
- package/templates/starter/src/components/test-run/test-run-details-guards.ts +85 -0
- package/templates/starter/src/components/test-run/test-run-details-helpers.test.ts +102 -0
- package/templates/starter/src/components/test-run/test-run-details-helpers.ts +10 -208
- package/templates/starter/src/components/test-run/test-run-details-progress.ts +26 -0
- package/templates/starter/src/components/test-run/test-run-details-status.ts +70 -0
- package/templates/starter/src/components/test-run/test-run-details-types.ts +21 -0
- package/templates/starter/src/components/test-run/test-run-details.test.tsx +1 -6
- package/templates/starter/src/components/test-run/test-run-details.tsx +26 -54
- package/templates/starter/src/components/test-run/test-run-header.test.tsx +13 -18
- package/templates/starter/src/components/test-run/trace-viewer-button-label.tsx +57 -0
- package/templates/starter/src/components/test-run/view-report-button.tsx +60 -64
- package/templates/starter/src/components/test-suite/test-suite-picker-helpers.test.ts +27 -1
- package/templates/starter/src/components/test-suite/test-suite-picker-helpers.ts +80 -1
- package/templates/starter/src/components/test-suite/test-suite-picker-suite-row-header.tsx +87 -0
- package/templates/starter/src/components/test-suite/test-suite-picker-suite-row.tsx +61 -0
- package/templates/starter/src/components/test-suite/test-suite-picker-test-case-list.tsx +95 -0
- package/templates/starter/src/components/test-suite/test-suite-picker.tsx +134 -275
- package/templates/starter/src/components/typography/page-header-subtitle.tsx +7 -7
- package/templates/starter/src/components/typography/page-header.tsx +7 -7
- package/templates/starter/src/components/ui/alert.tsx +12 -18
- package/templates/starter/src/components/ui/badge.tsx +1 -1
- package/templates/starter/src/components/ui/button.tsx +13 -10
- package/templates/starter/src/components/ui/calendar.tsx +3 -3
- package/templates/starter/src/components/ui/card.tsx +16 -34
- package/templates/starter/src/components/ui/chart-utils.ts +43 -0
- package/templates/starter/src/components/ui/chart.tsx +217 -304
- package/templates/starter/src/components/ui/checkbox.tsx +20 -17
- package/templates/starter/src/components/ui/command.tsx +63 -96
- package/templates/starter/src/components/ui/data-table-column-header.tsx +3 -3
- package/templates/starter/src/components/ui/data-table-pagination.tsx +7 -7
- package/templates/starter/src/components/ui/data-table-view-options.tsx +20 -15
- package/templates/starter/src/components/ui/data-table.tsx +22 -19
- package/templates/starter/src/components/ui/dialog.tsx +45 -63
- package/templates/starter/src/components/ui/dropdown-menu.tsx +76 -148
- package/templates/starter/src/components/ui/empty.tsx +21 -40
- package/templates/starter/src/components/ui/input.tsx +13 -15
- package/templates/starter/src/components/ui/kbd.tsx +7 -13
- package/templates/starter/src/components/ui/label.tsx +7 -6
- package/templates/starter/src/components/ui/multi-select-with-preview.tsx +20 -7
- package/templates/starter/src/components/ui/multi-select.tsx +7 -5
- package/templates/starter/src/components/ui/picker-browse-shell.tsx +99 -0
- package/templates/starter/src/components/ui/popover.tsx +21 -19
- package/templates/starter/src/components/ui/progress.tsx +14 -15
- package/templates/starter/src/components/ui/radio-group.tsx +14 -25
- package/templates/starter/src/components/ui/scroll-area.tsx +32 -29
- package/templates/starter/src/components/ui/select.tsx +99 -125
- package/templates/starter/src/components/ui/separator.tsx +16 -12
- package/templates/starter/src/components/ui/sheet.tsx +92 -0
- package/templates/starter/src/components/ui/skeleton.tsx +7 -7
- package/templates/starter/src/components/ui/table.tsx +24 -49
- package/templates/starter/src/components/ui/tabs.tsx +36 -41
- package/templates/starter/src/components/ui/textarea.tsx +11 -15
- package/templates/starter/src/components/ui/toast.tsx +56 -62
- package/templates/starter/src/components/ui/toaster.tsx +26 -26
- package/templates/starter/src/components/ui/tooltip.tsx +23 -20
- package/templates/starter/src/components/user-prompt/delete-prompt.tsx +5 -5
- package/templates/starter/src/constants/form-opts/diagram/node-form.ts +11 -28
- package/templates/starter/src/constants/form-opts/environment-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/locator-group-form-opts.ts +1 -7
- package/templates/starter/src/constants/form-opts/module-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/tag-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/template-selection-form-opts.ts +0 -11
- package/templates/starter/src/constants/form-opts/template-step-group-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/template-test-case-form-opts.ts +3 -33
- package/templates/starter/src/constants/form-opts/template-test-step-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/test-case-form-opts.ts +3 -35
- package/templates/starter/src/constants/form-opts/test-case-step-form-opts.ts +27 -0
- package/templates/starter/src/constants/form-opts/test-run-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/test-suite-form-opts.ts +1 -1
- package/templates/starter/src/hooks/use-toast.ts +1 -1
- package/templates/starter/src/lib/automation/automation-path-roots.ts +1 -9
- package/templates/starter/src/lib/bidirectional-sync.ts +116 -107
- package/templates/starter/src/lib/database-sync.ts +142 -190
- package/templates/starter/src/lib/environment-file-utils.ts +3 -115
- package/templates/starter/src/lib/executor/local-executor-adapter.ts +1 -1
- package/templates/starter/src/lib/form/tanstack-form-action.ts +7 -0
- package/templates/starter/src/lib/form/tanstack-form.tsx +18 -0
- package/templates/starter/src/lib/gherkin-parser.test.ts +7 -7
- package/templates/starter/src/lib/gherkin-parser.ts +132 -145
- package/templates/starter/src/lib/gherkin-step-format.ts +80 -0
- package/templates/starter/src/lib/jsdoc/template-step-jsdoc.ts +262 -0
- package/templates/starter/src/lib/locator-group-file-utils.ts +2 -20
- package/templates/starter/src/lib/locator-picker/suggestions.ts +7 -4
- package/templates/starter/src/lib/metrics/metric-calculator.test.ts +156 -0
- package/templates/starter/src/lib/metrics/metric-calculator.ts +251 -273
- package/templates/starter/src/lib/module-hierarchy-builder.ts +1 -10
- package/templates/starter/src/lib/path-helpers/feature-path.ts +10 -0
- package/templates/starter/src/lib/path-helpers/module-path.ts +0 -50
- package/templates/starter/src/lib/process/task-spawner.ts +50 -27
- package/templates/starter/src/lib/sync/projected-feature-utils.ts +2 -42
- package/templates/starter/src/lib/sync/sync-pending-counts.ts +126 -274
- package/templates/starter/src/lib/sync/sync-registry.ts +2 -2
- package/templates/starter/src/lib/tag-filters.ts +11 -0
- package/templates/starter/src/lib/tag-identifiers.ts +18 -0
- package/templates/starter/src/lib/tag-utils.ts +2 -28
- package/templates/starter/src/lib/template-automation-paths.ts +34 -0
- package/templates/starter/src/lib/template-path-exclusions.ts +34 -0
- package/templates/starter/src/lib/template-sync-utils.d.ts +6 -6
- package/templates/starter/src/lib/template-sync-utils.ts +2 -65
- package/templates/starter/src/lib/test-case-utils.ts +6 -6
- package/templates/starter/src/lib/test-run/log-formatter.ts +83 -83
- package/templates/starter/src/lib/test-run/matching.test.ts +77 -0
- package/templates/starter/src/lib/test-run/matching.ts +2 -2
- package/templates/starter/src/lib/test-run/report-parser.test.ts +113 -0
- package/templates/starter/src/lib/test-run/report-parser.ts +352 -352
- package/templates/starter/src/lib/test-suite-identifier-service.ts +1 -1
- package/templates/starter/src/lib/transformers/gherkin-converter.ts +42 -42
- package/templates/starter/src/lib/transformers/key-to-icon-transformer.tsx +95 -95
- package/templates/starter/src/lib/transformers/template-test-case-converter.ts +13 -64
- package/templates/starter/src/lib/utils/node-param-validation.ts +81 -81
- package/templates/starter/src/lib/utils/template-step-file-generator.ts +2 -19
- package/templates/starter/src/lib/utils/template-step-file-manager-intelligent.ts +1 -355
- package/templates/starter/src/lib/utils/template-step-function-bounds.test.ts +48 -0
- package/templates/starter/src/lib/utils/template-step-function-bounds.ts +138 -0
- package/templates/starter/src/lib/utils.ts +0 -4
- package/templates/starter/src/services/locator/locator-service.ts +22 -6
- package/templates/starter/src/services/report/report-service.ts +249 -237
- package/templates/starter/src/services/tag/tag-service.test.ts +140 -2
- package/templates/starter/src/services/tag/tag-service.ts +71 -0
- package/templates/starter/src/services/template-test-case/template-test-case-service.ts +34 -2
- package/templates/starter/src/services/test-case/test-case-service.test.ts +1 -0
- package/templates/starter/src/services/test-case/test-case-service.ts +39 -2
- package/templates/starter/src/services/test-run/test-run-service.ts +146 -119
- package/templates/starter/src/test/motion-react-vitest-mocks.ts +18 -0
- package/templates/starter/src/test/setup-motion-react-mocks.ts +4 -0
- package/templates/starter/src/types/diagram/diagram.ts +8 -0
- package/templates/starter/src/types/diagram/template-step.ts +5 -2
- package/templates/starter/src/types/report.ts +84 -0
- package/templates/starter/tsconfig.json +1 -1
- package/templates/blank/src/app/(base)/test-cases/create-from-template/template-selection-form.test.tsx +0 -87
- package/templates/blank/src/app/(base)/test-cases/create-from-template/template-selection-form.tsx +0 -83
- package/templates/blank/src/components/chart/pie-chart.tsx +0 -73
- package/templates/blank/src/components/data-extraction/locator-inspector.tsx +0 -349
- package/templates/blank/src/components/diagram/edit-header-option.tsx +0 -36
- package/templates/blank/src/components/kokonutui/smooth-tab.tsx +0 -453
- package/templates/blank/src/components/navigation/nav-card.tsx +0 -31
- package/templates/blank/src/components/node-header.tsx +0 -159
- package/templates/blank/src/components/ui/alert-dialog.tsx +0 -106
- package/templates/blank/src/components/ui/avatar.tsx +0 -40
- package/templates/blank/src/components/ui/loading.tsx +0 -12
- package/templates/blank/src/components/ui/navigation-menu.tsx +0 -120
- package/templates/blank/src/lib/template-sync-utils.js +0 -50
- package/templates/blank/src/lib/test-run/test-run-executor.ts +0 -13
- package/templates/blank/src/lib/utils/template-step-file-manager.ts +0 -166
- package/templates/blank/src/services/shared/index.ts +0 -7
- package/templates/blank/src/types/executor/browser.type.ts +0 -1
- package/templates/blank/src/types/locator/locator.type.ts +0 -11
- package/templates/blank/src/types/step/step.type.ts +0 -1
- package/templates/blank/src/types/table/data-table.ts +0 -6
- package/templates/starter/src/app/(base)/test-cases/create-from-template/template-selection-form.test.tsx +0 -87
- package/templates/starter/src/app/(base)/test-cases/create-from-template/template-selection-form.tsx +0 -83
- package/templates/starter/src/components/chart/pie-chart.tsx +0 -73
- package/templates/starter/src/components/data-extraction/locator-inspector.tsx +0 -349
- package/templates/starter/src/components/diagram/edit-header-option.tsx +0 -36
- package/templates/starter/src/components/kokonutui/smooth-tab.tsx +0 -453
- package/templates/starter/src/components/navigation/nav-card.tsx +0 -31
- package/templates/starter/src/components/node-header.tsx +0 -159
- package/templates/starter/src/components/ui/alert-dialog.tsx +0 -106
- package/templates/starter/src/components/ui/avatar.tsx +0 -40
- package/templates/starter/src/components/ui/loading.tsx +0 -12
- package/templates/starter/src/components/ui/navigation-menu.tsx +0 -120
- package/templates/starter/src/lib/template-sync-utils.js +0 -50
- package/templates/starter/src/lib/test-run/test-run-executor.ts +0 -13
- package/templates/starter/src/lib/utils/template-step-file-manager.ts +0 -166
- package/templates/starter/src/services/shared/index.ts +0 -7
- package/templates/starter/src/types/executor/browser.type.ts +0 -1
- package/templates/starter/src/types/locator/locator.type.ts +0 -11
- package/templates/starter/src/types/step/step.type.ts +0 -1
- package/templates/starter/src/types/table/data-table.ts +0 -6
package/templates/blank/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
-- RedefineTables
|
|
2
|
-
PRAGMA defer_foreign_keys=ON;
|
|
3
|
-
PRAGMA foreign_keys=OFF;
|
|
4
|
-
CREATE TABLE "new_ReportHook" (
|
|
5
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
-
"reportScenarioId" TEXT NOT NULL,
|
|
7
|
-
"keyword" TEXT NOT NULL,
|
|
8
|
-
"status" TEXT NOT NULL,
|
|
9
|
-
"duration" TEXT NOT NULL,
|
|
10
|
-
"errorMessage" TEXT,
|
|
11
|
-
"errorTrace" TEXT,
|
|
12
|
-
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
13
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
14
|
-
"updatedAt" DATETIME NOT NULL,
|
|
15
|
-
CONSTRAINT "ReportHook_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
16
|
-
);
|
|
17
|
-
INSERT INTO "new_ReportHook" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt" FROM "ReportHook";
|
|
18
|
-
DROP TABLE "ReportHook";
|
|
19
|
-
ALTER TABLE "new_ReportHook" RENAME TO "ReportHook";
|
|
20
|
-
CREATE TABLE "new_ReportStep" (
|
|
21
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
-
"reportScenarioId" TEXT NOT NULL,
|
|
23
|
-
"keyword" TEXT NOT NULL,
|
|
24
|
-
"line" INTEGER,
|
|
25
|
-
"name" TEXT NOT NULL,
|
|
26
|
-
"matchLocation" TEXT,
|
|
27
|
-
"status" TEXT NOT NULL,
|
|
28
|
-
"duration" TEXT NOT NULL,
|
|
29
|
-
"errorMessage" TEXT,
|
|
30
|
-
"errorTrace" TEXT,
|
|
31
|
-
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
32
|
-
"order" INTEGER NOT NULL,
|
|
33
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
34
|
-
"updatedAt" DATETIME NOT NULL,
|
|
35
|
-
CONSTRAINT "ReportStep_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
36
|
-
);
|
|
37
|
-
INSERT INTO "new_ReportStep" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt" FROM "ReportStep";
|
|
38
|
-
DROP TABLE "ReportStep";
|
|
39
|
-
ALTER TABLE "new_ReportStep" RENAME TO "ReportStep";
|
|
40
|
-
CREATE TABLE "new_ReportTestCase" (
|
|
41
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
42
|
-
"reportId" TEXT NOT NULL,
|
|
43
|
-
"testCaseId" TEXT NOT NULL,
|
|
44
|
-
"testRunTestCaseId" TEXT NOT NULL,
|
|
45
|
-
"reportScenarioId" TEXT,
|
|
46
|
-
"duration" TEXT NOT NULL,
|
|
47
|
-
CONSTRAINT "ReportTestCase_testRunTestCaseId_fkey" FOREIGN KEY ("testRunTestCaseId") REFERENCES "TestRunTestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
48
|
-
CONSTRAINT "ReportTestCase_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "Report" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
49
|
-
CONSTRAINT "ReportTestCase_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE SET NULL ON UPDATE CASCADE
|
|
50
|
-
);
|
|
51
|
-
INSERT INTO "new_ReportTestCase" ("duration", "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId") SELECT CAST("duration" AS TEXT), "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId" FROM "ReportTestCase";
|
|
52
|
-
DROP TABLE "ReportTestCase";
|
|
53
|
-
ALTER TABLE "new_ReportTestCase" RENAME TO "ReportTestCase";
|
|
54
|
-
PRAGMA foreign_keys=ON;
|
|
55
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
-- RedefineTables
|
|
2
|
+
PRAGMA defer_foreign_keys=ON;
|
|
3
|
+
PRAGMA foreign_keys=OFF;
|
|
4
|
+
CREATE TABLE "new_ReportHook" (
|
|
5
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
+
"reportScenarioId" TEXT NOT NULL,
|
|
7
|
+
"keyword" TEXT NOT NULL,
|
|
8
|
+
"status" TEXT NOT NULL,
|
|
9
|
+
"duration" TEXT NOT NULL,
|
|
10
|
+
"errorMessage" TEXT,
|
|
11
|
+
"errorTrace" TEXT,
|
|
12
|
+
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
13
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
14
|
+
"updatedAt" DATETIME NOT NULL,
|
|
15
|
+
CONSTRAINT "ReportHook_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
16
|
+
);
|
|
17
|
+
INSERT INTO "new_ReportHook" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt" FROM "ReportHook";
|
|
18
|
+
DROP TABLE "ReportHook";
|
|
19
|
+
ALTER TABLE "new_ReportHook" RENAME TO "ReportHook";
|
|
20
|
+
CREATE TABLE "new_ReportStep" (
|
|
21
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
+
"reportScenarioId" TEXT NOT NULL,
|
|
23
|
+
"keyword" TEXT NOT NULL,
|
|
24
|
+
"line" INTEGER,
|
|
25
|
+
"name" TEXT NOT NULL,
|
|
26
|
+
"matchLocation" TEXT,
|
|
27
|
+
"status" TEXT NOT NULL,
|
|
28
|
+
"duration" TEXT NOT NULL,
|
|
29
|
+
"errorMessage" TEXT,
|
|
30
|
+
"errorTrace" TEXT,
|
|
31
|
+
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
32
|
+
"order" INTEGER NOT NULL,
|
|
33
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
34
|
+
"updatedAt" DATETIME NOT NULL,
|
|
35
|
+
CONSTRAINT "ReportStep_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
36
|
+
);
|
|
37
|
+
INSERT INTO "new_ReportStep" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt" FROM "ReportStep";
|
|
38
|
+
DROP TABLE "ReportStep";
|
|
39
|
+
ALTER TABLE "new_ReportStep" RENAME TO "ReportStep";
|
|
40
|
+
CREATE TABLE "new_ReportTestCase" (
|
|
41
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
42
|
+
"reportId" TEXT NOT NULL,
|
|
43
|
+
"testCaseId" TEXT NOT NULL,
|
|
44
|
+
"testRunTestCaseId" TEXT NOT NULL,
|
|
45
|
+
"reportScenarioId" TEXT,
|
|
46
|
+
"duration" TEXT NOT NULL,
|
|
47
|
+
CONSTRAINT "ReportTestCase_testRunTestCaseId_fkey" FOREIGN KEY ("testRunTestCaseId") REFERENCES "TestRunTestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
48
|
+
CONSTRAINT "ReportTestCase_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "Report" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
49
|
+
CONSTRAINT "ReportTestCase_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE SET NULL ON UPDATE CASCADE
|
|
50
|
+
);
|
|
51
|
+
INSERT INTO "new_ReportTestCase" ("duration", "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId") SELECT CAST("duration" AS TEXT), "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId" FROM "ReportTestCase";
|
|
52
|
+
DROP TABLE "ReportTestCase";
|
|
53
|
+
ALTER TABLE "new_ReportTestCase" RENAME TO "ReportTestCase";
|
|
54
|
+
PRAGMA foreign_keys=ON;
|
|
55
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
-- RedefineTables
|
|
2
|
-
PRAGMA defer_foreign_keys=ON;
|
|
3
|
-
PRAGMA foreign_keys=OFF;
|
|
4
|
-
CREATE TABLE "new_TestRun" (
|
|
5
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
-
"name" TEXT NOT NULL,
|
|
7
|
-
"runId" TEXT NOT NULL,
|
|
8
|
-
"startedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
-
"completedAt" DATETIME,
|
|
10
|
-
"status" TEXT NOT NULL DEFAULT 'QUEUED',
|
|
11
|
-
"result" TEXT NOT NULL DEFAULT 'PENDING',
|
|
12
|
-
"updatedAt" DATETIME NOT NULL,
|
|
13
|
-
"environmentId" TEXT NOT NULL,
|
|
14
|
-
"testWorkersCount" INTEGER DEFAULT 1,
|
|
15
|
-
"browserEngine" TEXT NOT NULL DEFAULT 'CHROMIUM',
|
|
16
|
-
"logPath" TEXT,
|
|
17
|
-
"reportPath" TEXT,
|
|
18
|
-
CONSTRAINT "TestRun_environmentId_fkey" FOREIGN KEY ("environmentId") REFERENCES "Environment" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
19
|
-
);
|
|
20
|
-
INSERT INTO "new_TestRun" ("browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt") SELECT "browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt" FROM "TestRun";
|
|
21
|
-
DROP TABLE "TestRun";
|
|
22
|
-
ALTER TABLE "new_TestRun" RENAME TO "TestRun";
|
|
23
|
-
CREATE UNIQUE INDEX "TestRun_name_key" ON "TestRun"("name");
|
|
24
|
-
CREATE UNIQUE INDEX "TestRun_runId_key" ON "TestRun"("runId");
|
|
25
|
-
PRAGMA foreign_keys=ON;
|
|
26
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
27
|
-
|
|
1
|
+
-- RedefineTables
|
|
2
|
+
PRAGMA defer_foreign_keys=ON;
|
|
3
|
+
PRAGMA foreign_keys=OFF;
|
|
4
|
+
CREATE TABLE "new_TestRun" (
|
|
5
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
+
"name" TEXT NOT NULL,
|
|
7
|
+
"runId" TEXT NOT NULL,
|
|
8
|
+
"startedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
"completedAt" DATETIME,
|
|
10
|
+
"status" TEXT NOT NULL DEFAULT 'QUEUED',
|
|
11
|
+
"result" TEXT NOT NULL DEFAULT 'PENDING',
|
|
12
|
+
"updatedAt" DATETIME NOT NULL,
|
|
13
|
+
"environmentId" TEXT NOT NULL,
|
|
14
|
+
"testWorkersCount" INTEGER DEFAULT 1,
|
|
15
|
+
"browserEngine" TEXT NOT NULL DEFAULT 'CHROMIUM',
|
|
16
|
+
"logPath" TEXT,
|
|
17
|
+
"reportPath" TEXT,
|
|
18
|
+
CONSTRAINT "TestRun_environmentId_fkey" FOREIGN KEY ("environmentId") REFERENCES "Environment" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
19
|
+
);
|
|
20
|
+
INSERT INTO "new_TestRun" ("browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt") SELECT "browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt" FROM "TestRun";
|
|
21
|
+
DROP TABLE "TestRun";
|
|
22
|
+
ALTER TABLE "new_TestRun" RENAME TO "TestRun";
|
|
23
|
+
CREATE UNIQUE INDEX "TestRun_name_key" ON "TestRun"("name");
|
|
24
|
+
CREATE UNIQUE INDEX "TestRun_runId_key" ON "TestRun"("runId");
|
|
25
|
+
PRAGMA foreign_keys=ON;
|
|
26
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
27
|
+
|
package/templates/blank/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "TestCaseMetrics" (
|
|
3
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
4
|
-
"testCaseId" TEXT NOT NULL,
|
|
5
|
-
"isRepeatedlyFailing" BOOLEAN NOT NULL DEFAULT false,
|
|
6
|
-
"isFlaky" BOOLEAN NOT NULL DEFAULT false,
|
|
7
|
-
"consecutiveFailures" INTEGER NOT NULL DEFAULT 0,
|
|
8
|
-
"failureRate" REAL NOT NULL DEFAULT 0,
|
|
9
|
-
"totalRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
10
|
-
"failedRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
11
|
-
"lastExecutedAt" DATETIME,
|
|
12
|
-
"lastFailedAt" DATETIME,
|
|
13
|
-
"lastPassedAt" DATETIME,
|
|
14
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
-
"updatedAt" DATETIME NOT NULL,
|
|
16
|
-
CONSTRAINT "TestCaseMetrics_testCaseId_fkey" FOREIGN KEY ("testCaseId") REFERENCES "TestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
-- CreateTable
|
|
20
|
-
CREATE TABLE "TestSuiteMetrics" (
|
|
21
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
-
"testSuiteId" TEXT NOT NULL,
|
|
23
|
-
"lastExecutedAt" DATETIME,
|
|
24
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
25
|
-
"updatedAt" DATETIME NOT NULL,
|
|
26
|
-
CONSTRAINT "TestSuiteMetrics_testSuiteId_fkey" FOREIGN KEY ("testSuiteId") REFERENCES "TestSuite" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
-- CreateTable
|
|
30
|
-
CREATE TABLE "DashboardMetrics" (
|
|
31
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
32
|
-
"failedRecentRunsCount" INTEGER NOT NULL DEFAULT 0,
|
|
33
|
-
"repeatedlyFailingTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
34
|
-
"flakyTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
35
|
-
"suitesNotExecutedRecentlyCount" INTEGER NOT NULL DEFAULT 0,
|
|
36
|
-
"lastUpdatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
37
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
-- CreateIndex
|
|
41
|
-
CREATE UNIQUE INDEX "TestCaseMetrics_testCaseId_key" ON "TestCaseMetrics"("testCaseId");
|
|
42
|
-
|
|
43
|
-
-- CreateIndex
|
|
44
|
-
CREATE INDEX "TestCaseMetrics_isRepeatedlyFailing_idx" ON "TestCaseMetrics"("isRepeatedlyFailing");
|
|
45
|
-
|
|
46
|
-
-- CreateIndex
|
|
47
|
-
CREATE INDEX "TestCaseMetrics_isFlaky_idx" ON "TestCaseMetrics"("isFlaky");
|
|
48
|
-
|
|
49
|
-
-- CreateIndex
|
|
50
|
-
CREATE UNIQUE INDEX "TestSuiteMetrics_testSuiteId_key" ON "TestSuiteMetrics"("testSuiteId");
|
|
51
|
-
|
|
52
|
-
-- CreateIndex
|
|
53
|
-
CREATE INDEX "TestSuiteMetrics_lastExecutedAt_idx" ON "TestSuiteMetrics"("lastExecutedAt");
|
|
54
|
-
|
|
55
|
-
-- CreateIndex
|
|
56
|
-
CREATE INDEX "TestRun_completedAt_idx" ON "TestRun"("completedAt");
|
|
57
|
-
|
|
58
|
-
-- CreateIndex
|
|
59
|
-
CREATE INDEX "TestRun_result_idx" ON "TestRun"("result");
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "TestCaseMetrics" (
|
|
3
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
4
|
+
"testCaseId" TEXT NOT NULL,
|
|
5
|
+
"isRepeatedlyFailing" BOOLEAN NOT NULL DEFAULT false,
|
|
6
|
+
"isFlaky" BOOLEAN NOT NULL DEFAULT false,
|
|
7
|
+
"consecutiveFailures" INTEGER NOT NULL DEFAULT 0,
|
|
8
|
+
"failureRate" REAL NOT NULL DEFAULT 0,
|
|
9
|
+
"totalRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
10
|
+
"failedRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
11
|
+
"lastExecutedAt" DATETIME,
|
|
12
|
+
"lastFailedAt" DATETIME,
|
|
13
|
+
"lastPassedAt" DATETIME,
|
|
14
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
+
"updatedAt" DATETIME NOT NULL,
|
|
16
|
+
CONSTRAINT "TestCaseMetrics_testCaseId_fkey" FOREIGN KEY ("testCaseId") REFERENCES "TestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
-- CreateTable
|
|
20
|
+
CREATE TABLE "TestSuiteMetrics" (
|
|
21
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
+
"testSuiteId" TEXT NOT NULL,
|
|
23
|
+
"lastExecutedAt" DATETIME,
|
|
24
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
25
|
+
"updatedAt" DATETIME NOT NULL,
|
|
26
|
+
CONSTRAINT "TestSuiteMetrics_testSuiteId_fkey" FOREIGN KEY ("testSuiteId") REFERENCES "TestSuite" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
-- CreateTable
|
|
30
|
+
CREATE TABLE "DashboardMetrics" (
|
|
31
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
32
|
+
"failedRecentRunsCount" INTEGER NOT NULL DEFAULT 0,
|
|
33
|
+
"repeatedlyFailingTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
34
|
+
"flakyTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
35
|
+
"suitesNotExecutedRecentlyCount" INTEGER NOT NULL DEFAULT 0,
|
|
36
|
+
"lastUpdatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
37
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
-- CreateIndex
|
|
41
|
+
CREATE UNIQUE INDEX "TestCaseMetrics_testCaseId_key" ON "TestCaseMetrics"("testCaseId");
|
|
42
|
+
|
|
43
|
+
-- CreateIndex
|
|
44
|
+
CREATE INDEX "TestCaseMetrics_isRepeatedlyFailing_idx" ON "TestCaseMetrics"("isRepeatedlyFailing");
|
|
45
|
+
|
|
46
|
+
-- CreateIndex
|
|
47
|
+
CREATE INDEX "TestCaseMetrics_isFlaky_idx" ON "TestCaseMetrics"("isFlaky");
|
|
48
|
+
|
|
49
|
+
-- CreateIndex
|
|
50
|
+
CREATE UNIQUE INDEX "TestSuiteMetrics_testSuiteId_key" ON "TestSuiteMetrics"("testSuiteId");
|
|
51
|
+
|
|
52
|
+
-- CreateIndex
|
|
53
|
+
CREATE INDEX "TestSuiteMetrics_lastExecutedAt_idx" ON "TestSuiteMetrics"("lastExecutedAt");
|
|
54
|
+
|
|
55
|
+
-- CreateIndex
|
|
56
|
+
CREATE INDEX "TestRun_completedAt_idx" ON "TestRun"("completedAt");
|
|
57
|
+
|
|
58
|
+
-- CreateIndex
|
|
59
|
+
CREATE INDEX "TestRun_result_idx" ON "TestRun"("result");
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
-- RedefineTables
|
|
2
|
-
PRAGMA defer_foreign_keys=ON;
|
|
3
|
-
PRAGMA foreign_keys=OFF;
|
|
4
|
-
CREATE TABLE "new_TemplateTestCaseStepParameter" (
|
|
5
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
-
"name" TEXT NOT NULL,
|
|
7
|
-
"defaultValue" TEXT NOT NULL,
|
|
8
|
-
"order" INTEGER NOT NULL,
|
|
9
|
-
"testCaseStepId" TEXT NOT NULL,
|
|
10
|
-
"locatorId" TEXT,
|
|
11
|
-
"type" TEXT NOT NULL,
|
|
12
|
-
"defaultLocatorId" TEXT,
|
|
13
|
-
CONSTRAINT "TemplateTestCaseStepParameter_defaultLocatorId_fkey" FOREIGN KEY ("defaultLocatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
14
|
-
CONSTRAINT "TemplateTestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TemplateTestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
15
|
-
);
|
|
16
|
-
INSERT INTO "new_TemplateTestCaseStepParameter" ("defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type") SELECT "defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type" FROM "TemplateTestCaseStepParameter";
|
|
17
|
-
DROP TABLE "TemplateTestCaseStepParameter";
|
|
18
|
-
ALTER TABLE "new_TemplateTestCaseStepParameter" RENAME TO "TemplateTestCaseStepParameter";
|
|
19
|
-
CREATE TABLE "new_TestCaseStepParameter" (
|
|
20
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
21
|
-
"name" TEXT NOT NULL,
|
|
22
|
-
"value" TEXT NOT NULL,
|
|
23
|
-
"order" INTEGER NOT NULL,
|
|
24
|
-
"testCaseStepId" TEXT NOT NULL,
|
|
25
|
-
"locatorId" TEXT,
|
|
26
|
-
"type" TEXT NOT NULL,
|
|
27
|
-
CONSTRAINT "TestCaseStepParameter_locatorId_fkey" FOREIGN KEY ("locatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
28
|
-
CONSTRAINT "TestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
29
|
-
);
|
|
30
|
-
INSERT INTO "new_TestCaseStepParameter" ("id", "locatorId", "name", "order", "testCaseStepId", "type", "value") SELECT "id", "locatorId", "name", "order", "testCaseStepId", "type", "value" FROM "TestCaseStepParameter";
|
|
31
|
-
DROP TABLE "TestCaseStepParameter";
|
|
32
|
-
ALTER TABLE "new_TestCaseStepParameter" RENAME TO "TestCaseStepParameter";
|
|
33
|
-
PRAGMA foreign_keys=ON;
|
|
34
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
-- RedefineTables
|
|
2
|
+
PRAGMA defer_foreign_keys=ON;
|
|
3
|
+
PRAGMA foreign_keys=OFF;
|
|
4
|
+
CREATE TABLE "new_TemplateTestCaseStepParameter" (
|
|
5
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
+
"name" TEXT NOT NULL,
|
|
7
|
+
"defaultValue" TEXT NOT NULL,
|
|
8
|
+
"order" INTEGER NOT NULL,
|
|
9
|
+
"testCaseStepId" TEXT NOT NULL,
|
|
10
|
+
"locatorId" TEXT,
|
|
11
|
+
"type" TEXT NOT NULL,
|
|
12
|
+
"defaultLocatorId" TEXT,
|
|
13
|
+
CONSTRAINT "TemplateTestCaseStepParameter_defaultLocatorId_fkey" FOREIGN KEY ("defaultLocatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
14
|
+
CONSTRAINT "TemplateTestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TemplateTestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
15
|
+
);
|
|
16
|
+
INSERT INTO "new_TemplateTestCaseStepParameter" ("defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type") SELECT "defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type" FROM "TemplateTestCaseStepParameter";
|
|
17
|
+
DROP TABLE "TemplateTestCaseStepParameter";
|
|
18
|
+
ALTER TABLE "new_TemplateTestCaseStepParameter" RENAME TO "TemplateTestCaseStepParameter";
|
|
19
|
+
CREATE TABLE "new_TestCaseStepParameter" (
|
|
20
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
21
|
+
"name" TEXT NOT NULL,
|
|
22
|
+
"value" TEXT NOT NULL,
|
|
23
|
+
"order" INTEGER NOT NULL,
|
|
24
|
+
"testCaseStepId" TEXT NOT NULL,
|
|
25
|
+
"locatorId" TEXT,
|
|
26
|
+
"type" TEXT NOT NULL,
|
|
27
|
+
CONSTRAINT "TestCaseStepParameter_locatorId_fkey" FOREIGN KEY ("locatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
28
|
+
CONSTRAINT "TestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
29
|
+
);
|
|
30
|
+
INSERT INTO "new_TestCaseStepParameter" ("id", "locatorId", "name", "order", "testCaseStepId", "type", "value") SELECT "id", "locatorId", "name", "order", "testCaseStepId", "type", "value" FROM "TestCaseStepParameter";
|
|
31
|
+
DROP TABLE "TestCaseStepParameter";
|
|
32
|
+
ALTER TABLE "new_TestCaseStepParameter" RENAME TO "TestCaseStepParameter";
|
|
33
|
+
PRAGMA foreign_keys=ON;
|
|
34
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
ALTER TABLE "ReportStep" ADD COLUMN "screenshotPath" TEXT;
|
|
1
|
+
ALTER TABLE "ReportStep" ADD COLUMN "screenshotPath" TEXT;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
ALTER TABLE "TestCaseStep" ADD COLUMN "flowNodeId" TEXT;
|
|
2
|
+
UPDATE "TestCaseStep" SET "flowNodeId" = "id" WHERE "flowNodeId" IS NULL;
|
|
3
|
+
ALTER TABLE "TemplateTestCaseStep" ADD COLUMN "flowNodeId" TEXT;
|
|
4
|
+
UPDATE "TemplateTestCaseStep" SET "flowNodeId" = "id" WHERE "flowNodeId" IS NULL;
|
|
5
|
+
|
|
6
|
+
CREATE TABLE "TestCaseFlowBlock" (
|
|
7
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
8
|
+
"name" TEXT NOT NULL,
|
|
9
|
+
"testCaseId" TEXT NOT NULL,
|
|
10
|
+
"order" INTEGER NOT NULL,
|
|
11
|
+
CONSTRAINT "TestCaseFlowBlock_testCaseId_fkey" FOREIGN KEY ("testCaseId") REFERENCES "TestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
CREATE TABLE "TestCaseFlowBlockNode" (
|
|
15
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
16
|
+
"flowNodeId" TEXT NOT NULL,
|
|
17
|
+
"flowBlockId" TEXT NOT NULL,
|
|
18
|
+
CONSTRAINT "TestCaseFlowBlockNode_flowBlockId_fkey" FOREIGN KEY ("flowBlockId") REFERENCES "TestCaseFlowBlock" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
CREATE TABLE "TemplateTestCaseFlowBlock" (
|
|
22
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
23
|
+
"name" TEXT NOT NULL,
|
|
24
|
+
"templateTestCaseId" TEXT NOT NULL,
|
|
25
|
+
"order" INTEGER NOT NULL,
|
|
26
|
+
CONSTRAINT "TemplateTestCaseFlowBlock_templateTestCaseId_fkey" FOREIGN KEY ("templateTestCaseId") REFERENCES "TemplateTestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
CREATE TABLE "TemplateTestCaseFlowBlockNode" (
|
|
30
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
31
|
+
"flowNodeId" TEXT NOT NULL,
|
|
32
|
+
"flowBlockId" TEXT NOT NULL,
|
|
33
|
+
CONSTRAINT "TemplateTestCaseFlowBlockNode_flowBlockId_fkey" FOREIGN KEY ("flowBlockId") REFERENCES "TemplateTestCaseFlowBlock" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
34
|
+
);
|
|
@@ -94,10 +94,12 @@ model TestCase {
|
|
|
94
94
|
TestRunTestCase TestRunTestCase[]
|
|
95
95
|
tags Tag[]
|
|
96
96
|
metrics TestCaseMetrics?
|
|
97
|
+
flowBlocks TestCaseFlowBlock[]
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
model TestCaseStep {
|
|
100
101
|
id String @id @default(uuid())
|
|
102
|
+
flowNodeId String?
|
|
101
103
|
testCaseId String
|
|
102
104
|
order Int
|
|
103
105
|
gherkinStep String
|
|
@@ -109,6 +111,22 @@ model TestCaseStep {
|
|
|
109
111
|
parameters TestCaseStepParameter[]
|
|
110
112
|
}
|
|
111
113
|
|
|
114
|
+
model TestCaseFlowBlock {
|
|
115
|
+
id String @id @default(uuid())
|
|
116
|
+
name String
|
|
117
|
+
testCaseId String
|
|
118
|
+
order Int
|
|
119
|
+
testCase TestCase @relation(fields: [testCaseId], references: [id], onDelete: Cascade)
|
|
120
|
+
nodes TestCaseFlowBlockNode[]
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
model TestCaseFlowBlockNode {
|
|
124
|
+
id String @id @default(uuid())
|
|
125
|
+
flowNodeId String
|
|
126
|
+
flowBlockId String
|
|
127
|
+
flowBlock TestCaseFlowBlock @relation(fields: [flowBlockId], references: [id], onDelete: Cascade)
|
|
128
|
+
}
|
|
129
|
+
|
|
112
130
|
model TemplateTestCase {
|
|
113
131
|
id String @id @default(uuid())
|
|
114
132
|
name String
|
|
@@ -116,10 +134,12 @@ model TemplateTestCase {
|
|
|
116
134
|
createdAt DateTime @default(now())
|
|
117
135
|
updatedAt DateTime @updatedAt
|
|
118
136
|
steps TemplateTestCaseStep[]
|
|
137
|
+
flowBlocks TemplateTestCaseFlowBlock[]
|
|
119
138
|
}
|
|
120
139
|
|
|
121
140
|
model TemplateTestCaseStep {
|
|
122
141
|
id String @id @default(uuid())
|
|
142
|
+
flowNodeId String?
|
|
123
143
|
order Int
|
|
124
144
|
gherkinStep String
|
|
125
145
|
icon TemplateStepIcon
|
|
@@ -131,6 +151,22 @@ model TemplateTestCaseStep {
|
|
|
131
151
|
parameters TemplateTestCaseStepParameter[]
|
|
132
152
|
}
|
|
133
153
|
|
|
154
|
+
model TemplateTestCaseFlowBlock {
|
|
155
|
+
id String @id @default(uuid())
|
|
156
|
+
name String
|
|
157
|
+
templateTestCaseId String
|
|
158
|
+
order Int
|
|
159
|
+
templateTestCase TemplateTestCase @relation(fields: [templateTestCaseId], references: [id], onDelete: Cascade)
|
|
160
|
+
nodes TemplateTestCaseFlowBlockNode[]
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
model TemplateTestCaseFlowBlockNode {
|
|
164
|
+
id String @id @default(uuid())
|
|
165
|
+
flowNodeId String
|
|
166
|
+
flowBlockId String
|
|
167
|
+
flowBlock TemplateTestCaseFlowBlock @relation(fields: [flowBlockId], references: [id], onDelete: Cascade)
|
|
168
|
+
}
|
|
169
|
+
|
|
134
170
|
model TemplateTestCaseStepParameter {
|
|
135
171
|
id String @id @default(uuid())
|
|
136
172
|
name String
|
|
@@ -54,6 +54,18 @@ describe('parseGroupJSDoc', () => {
|
|
|
54
54
|
expect(parseGroupJSDoc(content)?.name).toBe('Imported Group')
|
|
55
55
|
})
|
|
56
56
|
|
|
57
|
+
it('parses when formatted multiline imports are before jsdoc', () => {
|
|
58
|
+
const content = `import {
|
|
59
|
+
x,
|
|
60
|
+
y,
|
|
61
|
+
} from 'z'
|
|
62
|
+
/**
|
|
63
|
+
* @name Multiline Imported Group
|
|
64
|
+
* @type ACTION
|
|
65
|
+
*/`
|
|
66
|
+
expect(parseGroupJSDoc(content)?.name).toBe('Multiline Imported Group')
|
|
67
|
+
})
|
|
68
|
+
|
|
57
69
|
it('returns null for malformed close', () => {
|
|
58
70
|
const content = `/**
|
|
59
71
|
* @name Broken
|
|
@@ -1,88 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type: TemplateStepGroupType
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Parses JSDoc comment to extract top-of-file step group metadata.
|
|
11
|
-
* Returns null if no valid group JSDoc is found.
|
|
12
|
-
*/
|
|
13
|
-
export function parseGroupJSDoc(content: string): StepGroupJSDoc | null {
|
|
14
|
-
const lines = content.split('\n')
|
|
15
|
-
|
|
16
|
-
if (lines.length === 0) {
|
|
17
|
-
return null
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
let startLine = 0
|
|
21
|
-
while (startLine < lines.length) {
|
|
22
|
-
const line = lines[startLine].trim()
|
|
23
|
-
if (line === '' || line.startsWith('import ')) {
|
|
24
|
-
startLine++
|
|
25
|
-
continue
|
|
26
|
-
}
|
|
27
|
-
break
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (startLine >= lines.length || !lines[startLine].trim().startsWith('/**')) {
|
|
31
|
-
return null
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
let hasType = false
|
|
35
|
-
let endLine = -1
|
|
36
|
-
let name: string | null = null
|
|
37
|
-
let description: string | null = null
|
|
38
|
-
let type: string | null = null
|
|
39
|
-
|
|
40
|
-
const maxLines = Math.min(lines.length, startLine + 50)
|
|
41
|
-
for (let i = startLine; i < maxLines; i++) {
|
|
42
|
-
const line = lines[i].trim()
|
|
43
|
-
|
|
44
|
-
if (line.includes('*/')) {
|
|
45
|
-
const beforeClose = line.split('*/')[0].trim()
|
|
46
|
-
|
|
47
|
-
if (beforeClose.startsWith('* @name') || beforeClose.startsWith('*@name')) {
|
|
48
|
-
const match = beforeClose.match(/@name\s+(.+)/)
|
|
49
|
-
if (match) name = match[1].trim()
|
|
50
|
-
} else if (beforeClose.startsWith('* @description') || beforeClose.startsWith('*@description')) {
|
|
51
|
-
const match = beforeClose.match(/@description\s+(.+)/)
|
|
52
|
-
if (match) description = match[1].trim() || null
|
|
53
|
-
} else if (beforeClose.startsWith('* @type') || beforeClose.startsWith('*@type')) {
|
|
54
|
-
hasType = true
|
|
55
|
-
const match = beforeClose.match(/@type\s+(.+)/)
|
|
56
|
-
if (match) type = match[1].trim()
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
endLine = i
|
|
60
|
-
break
|
|
61
|
-
} else if (line.startsWith('* @name') || line.startsWith('*@name')) {
|
|
62
|
-
const match = line.match(/@name\s+(.+)/)
|
|
63
|
-
if (match) name = match[1].trim()
|
|
64
|
-
} else if (line.startsWith('* @description') || line.startsWith('*@description')) {
|
|
65
|
-
const match = line.match(/@description\s+(.+)/)
|
|
66
|
-
if (match) description = match[1].trim() || null
|
|
67
|
-
} else if (line.startsWith('* @type') || line.startsWith('*@type')) {
|
|
68
|
-
hasType = true
|
|
69
|
-
const match = line.match(/@type\s+(.+)/)
|
|
70
|
-
if (match) type = match[1].trim()
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (hasType && endLine >= 0 && name && type) {
|
|
75
|
-
const normalizedType = type.toUpperCase()
|
|
76
|
-
if (normalizedType !== 'ACTION' && normalizedType !== 'VALIDATION') {
|
|
77
|
-
throw new Error(`Invalid @type value: ${type}. Must be ACTION or VALIDATION`)
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return {
|
|
81
|
-
name: name.trim(),
|
|
82
|
-
description: description ? description.trim() : null,
|
|
83
|
-
type: normalizedType as TemplateStepGroupType,
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return null
|
|
88
|
-
}
|
|
1
|
+
export {
|
|
2
|
+
readJSDocTag,
|
|
3
|
+
parseGroupJSDocStrict as parseGroupJSDoc,
|
|
4
|
+
type StepGroupJSDoc,
|
|
5
|
+
} from '@/lib/jsdoc/template-step-jsdoc'
|