test(workflow): add unit tests for workflow components #33741
test(workflow): add unit tests for workflow components #33741CodingOnStar merged 11 commits intomainfrom
Conversation
…g AllStartBlocks, DataSources, FeaturedTriggers, and IndexBar
…Collapse, InputField, Layout, NextStep, PanelOperator, VariableLabel, DataSource, and Trigger nodes
…g useSingleRunFormParams, IndexMethod, OptionCard, and retrieval settings
|
Warning Gemini encountered an error creating the summary. You can try again by commenting |
There was a problem hiding this comment.
Pull request overview
Adds a broad set of frontend unit tests across the workflow UI to improve confidence in workflow rendering, node panels, variable inspection, run log triggers, note editor behavior, and block selection utilities.
Changes:
- Added new unit test suites for workflow preview, variable-inspect UI, run-log triggers/panels, and version history panel components.
- Added unit tests for workflow nodes (e.g., start/end/answer/schedule/webhook/data-source, iteration/loop markers) and workflow base components (panel operator, next-step, collapse/layout primitives, variable labels).
- Added extensive tests for the Knowledge Base node configuration/hooks and retrieval/chunk-structure UI (plus a small extension to an existing test file).
Reviewed changes
Copilot reviewed 60 out of 60 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| web/app/components/workflow/workflow-preview/tests/index.spec.tsx | Tests minimap placement and preview container rendering. |
| web/app/components/workflow/variable-inspect/tests/trigger.spec.tsx | Tests trigger visibility, open/clear behaviors, and running state. |
| web/app/components/workflow/variable-inspect/tests/panel.spec.tsx | Tests panel listening/empty states and env var selection rendering. |
| web/app/components/workflow/variable-inspect/tests/large-data-alert.spec.tsx | Tests alert messaging and export action presence. |
| web/app/components/workflow/variable-inspect/tests/group.spec.tsx | Tests variable grouping behavior (masking, visibility, actions). |
| web/app/components/workflow/variable-inspect/tests/empty.spec.tsx | Tests empty-state copy and docs link wiring. |
| web/app/components/workflow/run/retry-log/tests/retry-log-trigger.spec.tsx | Tests retry trigger click behavior and event propagation. |
| web/app/components/workflow/run/loop-log/tests/loop-log-trigger.spec.tsx | Tests loop detail reconstruction and callback payloads. |
| web/app/components/workflow/run/agent-log/tests/agent-log-trigger.spec.tsx | Tests agent strategy rendering and detail open behavior. |
| web/app/components/workflow/run/tests/status-container.spec.tsx | Tests theme/status styling variants. |
| web/app/components/workflow/run/tests/special-result-panel.spec.tsx | Tests click isolation + conditional rendering of special panels. |
| web/app/components/workflow/panel/version-history-panel/loading/tests/index.spec.tsx | Tests version history loading skeleton rows and item flags. |
| web/app/components/workflow/panel/version-history-panel/filter/tests/index.spec.tsx | Tests filter switch/item behavior and composed filter UI. |
| web/app/components/workflow/panel/version-history-panel/tests/version-history-item.spec.tsx | Tests draft auto-select and published context-menu behavior. |
| web/app/components/workflow/panel/version-history-panel/tests/empty.spec.tsx | Tests empty-state reset action wiring. |
| web/app/components/workflow/operator/tests/index.spec.tsx | Tests operator sizing logic and ResizeObserver synchronization. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/operator.spec.tsx | Tests operator menu actions and author toggle behavior. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/index.spec.tsx | Tests toolbar composition and callback forwarding. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/font-size-selector.spec.tsx | Tests font size selection interactions. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/command.spec.tsx | Tests command highlighting and dispatch behavior. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/color-picker.spec.tsx | Tests theme palette open/close and selection behavior. |
| web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/tests/index.spec.tsx | Tests link editor visibility and store-driven rendering. |
| web/app/components/workflow/note-node/note-editor/plugins/format-detector-plugin/tests/index.spec.tsx | Tests plugin mounts without visible output. |
| web/app/components/workflow/note-node/note-editor/tests/editor.spec.tsx | Tests lexical editor rendering, focus/blur, and change propagation. |
| web/app/components/workflow/note-node/note-editor/tests/context.spec.tsx | Tests provider initialization and state restoration behavior. |
| web/app/components/workflow/note-node/tests/index.spec.tsx | Tests note node toolbar visibility and outside-click behavior. |
| web/app/components/workflow/nodes/trigger-webhook/tests/node.spec.tsx | Tests webhook URL rendering and placeholder state. |
| web/app/components/workflow/nodes/trigger-schedule/tests/node.spec.tsx | Tests next execution time rendering and invalid cron fallback. |
| web/app/components/workflow/nodes/start/tests/node.spec.tsx | Tests start variables rendering and empty rendering behavior. |
| web/app/components/workflow/nodes/loop-start/tests/index.spec.tsx | Tests loop-start node handle rendering and dumb variant behavior. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-settings-display.spec.ts | Tests translation label mapping for settings enums. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-embedding-model-status.spec.ts | Tests embedding model/provider resolution and status derivation. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-config.spec.tsx | Tests Knowledge Base config hook update behaviors. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/top-k-and-score-threshold.spec.tsx | Extends retrieval setting tests for visibility/default behaviors. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/search-method-option.spec.tsx | Tests retrieval option UI branches and callbacks. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/index.spec.tsx | Tests retrieval setting component rendering for index methods. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/hooks.spec.tsx | Tests retrieval setting option sets returned by hook. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/tests/line.spec.tsx | Tests instruction line SVG orientation variants. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/tests/index.spec.tsx | Tests instruction card rendering and learn-more link. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/selector.spec.tsx | Tests chunk structure selector open/select and readonly behavior. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/hooks.spec.tsx | Tests chunk structure options and icon renderer output classes. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/option-card.spec.tsx | Tests option card selection/readonly behavior and prop variants. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/index-method.spec.tsx | Tests index method UI behavior and readonly keyword controls. |
| web/app/components/workflow/nodes/knowledge-base/tests/use-single-run-form-params.spec.ts | Tests KB single-run form mapping and dependency resolution. |
| web/app/components/workflow/nodes/iteration-start/tests/index.spec.tsx | Tests iteration-start node handle rendering and dumb variant behavior. |
| web/app/components/workflow/nodes/end/tests/node.spec.tsx | Tests end node output rendering and empty selector handling. |
| web/app/components/workflow/nodes/data-source/tests/node.spec.tsx | Tests install button rendering when datasource plugin is missing. |
| web/app/components/workflow/nodes/data-source-empty/tests/index.spec.tsx | Tests empty datasource node trigger and selection forwarding. |
| web/app/components/workflow/nodes/answer/tests/node.spec.tsx | Tests answer node rendering and variable interpolation display. |
| web/app/components/workflow/nodes/_base/components/variable/variable-label/tests/index.spec.tsx | Tests variable label barrel exports render expected metadata. |
| web/app/components/workflow/nodes/_base/components/panel-operator/tests/index.spec.tsx | Tests panel operator popup actions and help link visibility. |
| web/app/components/workflow/nodes/_base/components/next-step/tests/index.spec.tsx | Tests next-step rendering for linear, branched, and failure paths. |
| web/app/components/workflow/nodes/_base/components/layout/tests/index.spec.tsx | Tests layout barrel exports render composed primitives. |
| web/app/components/workflow/nodes/_base/components/input-field/tests/index.spec.tsx | Tests placeholder input field rendering. |
| web/app/components/workflow/nodes/_base/components/collapse/tests/index.spec.tsx | Tests collapse behavior for uncontrolled/disabled/controlled modes. |
| web/app/components/workflow/block-selector/tests/start-blocks.spec.tsx | Tests start blocks filtering/selection and user-input hiding. |
| web/app/components/workflow/block-selector/tests/index-bar.spec.tsx | Tests grouping logic and letter scroll behavior. |
| web/app/components/workflow/block-selector/tests/featured-triggers.spec.tsx | Tests featured triggers collapse persistence and selection behavior. |
| web/app/components/workflow/block-selector/tests/data-sources.spec.tsx | Tests datasource selection defaults, filtering, marketplace querying. |
| web/app/components/workflow/block-selector/tests/all-start-blocks.spec.tsx | Tests merged start tab content and marketplace empty-state behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...omponents/workflow/note-node/note-editor/plugins/link-editor-plugin/__tests__/index.spec.tsx
Show resolved
Hide resolved
web/app/components/workflow/nodes/knowledge-base/hooks/__tests__/use-config.spec.tsx
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #33741 +/- ##
==========================================
+ Coverage 77.85% 78.98% +1.12%
==========================================
Files 3031 3093 +62
Lines 69500 71019 +1519
Branches 20376 20870 +494
==========================================
+ Hits 54110 56092 +1982
+ Misses 15390 14927 -463
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR expands unit test coverage across the workflow UI by adding many new component/hook specs and by introducing shared test utilities (fixtures + a real ReactFlow-backed test harness) to reduce duplicated setup and improve consistency.
Changes:
- Add extensive unit tests for workflow preview, run-log triggers/panels, variable inspect UI, version history UI, note editor UI, block selector UI, and multiple workflow nodes/hooks.
- Introduce shared test helpers/fixtures (doc-link mock helpers, model-provider fixtures, and a ReactFlow-backed
renderWorkflowFlowComponent/renderWorkflowFlowHook) and refactor existing tests to use them. - Replace several ReactFlow module mocks with “real ReactFlow” tests using the new harness.
Reviewed changes
Copilot reviewed 82 out of 82 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| web/app/components/workflow/workflow-preview/components/tests/node-handle.spec.tsx | Refactors node-handle tests to use shared ReactFlow test harness + fixtures. |
| web/app/components/workflow/workflow-preview/components/tests/error-handle-on-node.spec.tsx | Refactors error-handle tests to use shared ReactFlow test harness + fixtures. |
| web/app/components/workflow/workflow-preview/tests/index.spec.tsx | Adds WorkflowPreview rendering tests (minimap placement + container classes). |
| web/app/components/workflow/variable-inspect/tests/trigger.spec.tsx | Adds tests for variable-inspect trigger behavior and store interactions. |
| web/app/components/workflow/variable-inspect/tests/panel.spec.tsx | Adds tests for variable-inspect panel states and interactions. |
| web/app/components/workflow/variable-inspect/tests/large-data-alert.spec.tsx | Adds tests for large-data alert messaging and export action visibility. |
| web/app/components/workflow/variable-inspect/tests/group.spec.tsx | Adds tests for variable group behaviors (masking, visibility, actions). |
| web/app/components/workflow/variable-inspect/tests/empty.spec.tsx | Adds tests for empty-state copy + docs link wiring. |
| web/app/components/workflow/run/retry-log/tests/retry-log-trigger.spec.tsx | Adds tests for retry-log trigger click handling and fallback behavior. |
| web/app/components/workflow/run/loop-log/tests/loop-log-trigger.spec.tsx | Adds tests for loop-log trigger structured detail reconstruction/forwarding. |
| web/app/components/workflow/run/agent-log/tests/agent-log-trigger.spec.tsx | Adds tests for agent-log trigger strategy display and click forwarding. |
| web/app/components/workflow/run/tests/status.spec.tsx | Updates docs-link mocking to use shared doc-link helper. |
| web/app/components/workflow/run/tests/status-container.spec.tsx | Adds tests for themed status container styling variants. |
| web/app/components/workflow/run/tests/special-result-panel.spec.tsx | Adds tests for conditional panel rendering and click propagation isolation. |
| web/app/components/workflow/panel/version-history-panel/loading/tests/index.spec.tsx | Adds tests for version-history loading skeleton behavior. |
| web/app/components/workflow/panel/version-history-panel/filter/tests/index.spec.tsx | Adds tests for filter switch/item and composed filter popover behavior. |
| web/app/components/workflow/panel/version-history-panel/tests/version-history-item.spec.tsx | Adds tests for draft auto-select and published item context-menu behavior. |
| web/app/components/workflow/panel/version-history-panel/tests/empty.spec.tsx | Adds tests for version-history empty state reset action. |
| web/app/components/workflow/panel/tests/inputs-panel.spec.tsx | Refactors InputsPanel tests to use shared ReactFlow test harness. |
| web/app/components/workflow/operator/tests/index.spec.tsx | Adds tests for operator sizing + ResizeObserver synchronization. |
| web/app/components/workflow/operator/tests/add-block.spec.tsx | Refactors AddBlock tests to use shared ReactFlow test harness + fixtures. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/operator.spec.tsx | Adds tests for note editor toolbar operator menu actions and switch. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/index.spec.tsx | Adds integration-ish toolbar test covering color/operator actions. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/font-size-selector.spec.tsx | Adds tests for font-size selector open/select behavior. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/command.spec.tsx | Adds tests for command highlighting and dispatch behavior. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/color-picker.spec.tsx | Adds tests for color picker popover open/select behavior. |
| web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/tests/index.spec.tsx | Adds tests for link editor plugin visibility and store-driven render. |
| web/app/components/workflow/note-node/note-editor/plugins/format-detector-plugin/tests/index.spec.tsx | Adds test ensuring format detector mounts without rendering UI. |
| web/app/components/workflow/note-node/note-editor/tests/editor.spec.tsx | Adds tests for lexical editor placeholder, focus/blur, and onChange wiring. |
| web/app/components/workflow/note-node/note-editor/tests/context.spec.tsx | Adds tests for context provider defaults + editor state initialization cases. |
| web/app/components/workflow/note-node/tests/index.spec.tsx | Adds tests for note node toolbar/author visibility and outside click behavior. |
| web/app/components/workflow/nodes/trigger-webhook/tests/node.spec.tsx | Adds tests for webhook node URL rendering + placeholder fallback. |
| web/app/components/workflow/nodes/trigger-schedule/tests/node.spec.tsx | Adds tests for schedule node next-execution rendering + invalid cron fallback. |
| web/app/components/workflow/nodes/start/tests/node.spec.tsx | Adds tests for start node variable rendering + empty rendering behavior. |
| web/app/components/workflow/nodes/loop-start/tests/index.spec.tsx | Adds tests for loop-start node handle presence and dumb variant behavior. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-settings-display.spec.ts | Adds tests for settings display translation-key mapping. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-embedding-model-status.spec.ts | Adds tests for embedding model status derivation across cases. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/reranking-model-selector.spec.tsx | Refactors tests to use shared model-provider fixtures. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/top-k-and-score-threshold.spec.tsx | Extends coverage for hidden controls + cleared-field behavior. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/search-method-option.spec.tsx | Adds tests for option rendering + callbacks across search modes. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/index.spec.tsx | Adds tests for retrieval setting option sets + learn-more link. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/hooks.spec.tsx | Adds tests for retrieval-setting hook option selection by index method. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/tests/line.spec.tsx | Adds tests for instruction line SVG variant rendering. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/tests/index.spec.tsx | Adds tests for instruction card copy + learn-more link wiring. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/selector.spec.tsx | Adds tests for selector open/select flow + readonly behavior. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/hooks.spec.tsx | Adds tests for chunk-structure hook options + icon renderers. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/option-card.spec.tsx | Adds tests for option-card selection/readonly/wrapper/icon behaviors. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/index-method.spec.tsx | Adds tests for index method options + keyword controls + readonly behavior. |
| web/app/components/workflow/nodes/knowledge-base/tests/use-single-run-form-params.spec.ts | Adds tests for knowledge-base single-run form params + dependencies. |
| web/app/components/workflow/nodes/iteration-start/tests/index.spec.tsx | Adds tests for iteration-start node handle presence and dumb variant behavior. |
| web/app/components/workflow/nodes/end/tests/node.spec.tsx | Adds tests for end-node output resolution and empty selector behavior. |
| web/app/components/workflow/nodes/data-source/tests/node.spec.tsx | Adds tests for datasource node install button visibility conditions. |
| web/app/components/workflow/nodes/data-source-empty/tests/index.spec.tsx | Adds tests for datasource-empty node rendering and block selection forwarding. |
| web/app/components/workflow/nodes/answer/tests/node.spec.tsx | Adds tests for answer node rendering + variable reference rendering. |
| web/app/components/workflow/nodes/_base/components/variable/variable-label/tests/index.spec.tsx | Adds tests for barrel exports rendering expected metadata. |
| web/app/components/workflow/nodes/_base/components/panel-operator/tests/index.spec.tsx | Adds tests for panel operator popover actions and help link visibility. |
| web/app/components/workflow/nodes/_base/components/next-step/tests/index.spec.tsx | Adds tests for next-step rendering across default/branch/failure cases. |
| web/app/components/workflow/nodes/_base/components/layout/tests/index.spec.tsx | Adds tests for barrel export rendering of layout primitives. |
| web/app/components/workflow/nodes/_base/components/input-field/tests/index.spec.tsx | Adds tests for placeholder input-field rendering. |
| web/app/components/workflow/nodes/_base/components/collapse/tests/index.spec.tsx | Adds tests for collapse expand/disabled/controlled behaviors. |
| web/app/components/workflow/nodes/_base/components/tests/agent-strategy.spec.tsx | Updates doc-link mocking to use shared helper. |
| web/app/components/workflow/hooks/tests/use-workflow.spec.ts | Refactors iteration/loop membership tests to use real ReactFlow harness. |
| web/app/components/workflow/hooks/tests/use-without-sync-hooks.spec.ts | Refactors tests away from ReactFlow mocks to real ReactFlow harness + hooks. |
| web/app/components/workflow/hooks/tests/use-selection-interactions.spec.ts | Refactors selection interaction tests to real ReactFlow store + hooks. |
| web/app/components/workflow/hooks/tests/use-auto-generate-webhook-url.spec.ts | Refactors webhook URL hook tests to real ReactFlow harness + waitFor assertions. |
| web/app/components/workflow/block-selector/tests/start-blocks.spec.tsx | Adds tests for start blocks rendering/filtering/selection rules. |
| web/app/components/workflow/block-selector/tests/index-bar.spec.tsx | Adds tests for provider grouping and index-bar scrolling behavior. |
| web/app/components/workflow/block-selector/tests/featured-triggers.spec.tsx | Adds tests for featured triggers collapse persistence + selection. |
| web/app/components/workflow/block-selector/tests/data-sources.spec.tsx | Adds tests for datasource selection payload normalization + marketplace querying. |
| web/app/components/workflow/block-selector/tests/all-start-blocks.spec.tsx | Adds tests for combined start tab content + marketplace empty state behavior. |
| web/app/components/workflow/tests/workflow-test-env.tsx | Adds ReactFlow-backed render helpers for component/hook tests. |
| web/app/components/workflow/tests/workflow-test-env.spec.tsx | Adds coverage verifying the new ReactFlow-backed render helpers. |
| web/app/components/workflow/tests/workflow-edge-events.spec.tsx | Refactors edge event wiring tests to work with real ReactFlow store/events. |
| web/app/components/workflow/tests/model-provider-fixtures.ts | Adds reusable fixtures for model/provider-related workflow tests. |
| web/app/components/workflow/tests/i18n.ts | Adds reusable doc-link resolver + mock factory for tests. |
| web/app/components/workflow/tests/fixtures.ts | Adds a createNodeDataFactory helper for building typed node payloads. |
| web/app/components/workflow/tests/features.spec.tsx | Refactors Features tests to use ReactFlow-backed render helper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
web/app/components/workflow/note-node/note-editor/toolbar/__tests__/operator.spec.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Adds extensive unit-test coverage across the workflow frontend (nodes, panels, selectors, hooks), and introduces shared test utilities/fixtures to make ReactFlow-dependent components easier to test in a realistic environment.
Changes:
- Added many new unit tests for workflow nodes/panels/log rendering and supporting UI primitives.
- Introduced real ReactFlow-backed test helpers (
renderWorkflowFlowComponent/renderWorkflowFlowHook) and additional test fixtures. - Updated/moved existing tests to new
__tests__locations, tightened typings (removingany), and cleaned up ESLint suppressions.
Reviewed changes
Copilot reviewed 113 out of 115 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| web/utils/semver.ts | Small refactor to centralize semver parsing calls. |
| web/eslint-suppressions.json | Removes suppressions now that tests no longer use any. |
| web/app/components/workflow/workflow-preview/components/tests/node-handle.spec.tsx | Switches to shared ReactFlow test env + fixtures. |
| web/app/components/workflow/workflow-preview/components/tests/error-handle-on-node.spec.tsx | Switches to shared ReactFlow test env + fixtures. |
| web/app/components/workflow/workflow-preview/tests/index.spec.tsx | Adds unit tests for minimap placement behavior. |
| web/app/components/workflow/variable-inspect/tests/trigger.spec.tsx | Adds trigger-state interaction tests. |
| web/app/components/workflow/variable-inspect/tests/panel.spec.tsx | Adds panel rendering and interaction tests. |
| web/app/components/workflow/variable-inspect/tests/large-data-alert.spec.tsx | Adds LargeDataAlert conditional rendering tests. |
| web/app/components/workflow/variable-inspect/tests/group.spec.tsx | Adds variable-group behavior tests (masking, collapse, actions). |
| web/app/components/workflow/variable-inspect/tests/empty.spec.tsx | Adds empty-state + docs link tests. |
| web/app/components/workflow/utils/tests/plugin-install-check.spec.ts | Fixes import paths after test structure changes. |
| web/app/components/workflow/run/utils/format-log/retry/tests/index.spec.ts | Improves typing and fixes import paths. |
| web/app/components/workflow/run/utils/format-log/loop/tests/index.spec.ts | Improves typing and fixes import paths. |
| web/app/components/workflow/run/utils/format-log/iteration/tests/index.spec.ts | Improves typing and fixes import paths. |
| web/app/components/workflow/run/utils/format-log/agent/index.spec.ts | Removes old spec file (moved under __tests__). |
| web/app/components/workflow/run/utils/format-log/agent/tests/index.spec.ts | Adds replacement agent format-log tests in new location. |
| web/app/components/workflow/run/utils/format-log/tests/graph-to-log-struct.spec.ts | Fixes import path to tested module. |
| web/app/components/workflow/run/retry-log/tests/retry-log-trigger.spec.tsx | Adds RetryLogTrigger interaction tests. |
| web/app/components/workflow/run/loop-log/tests/loop-log-trigger.spec.tsx | Adds LoopLogTrigger structured-detail tests. |
| web/app/components/workflow/run/agent-log/tests/agent-log-trigger.spec.tsx | Adds AgentLogTrigger interaction tests. |
| web/app/components/workflow/run/tests/status.spec.tsx | Updates docs-link mocking to shared helper. |
| web/app/components/workflow/run/tests/status-container.spec.tsx | Adds theme/status styling tests. |
| web/app/components/workflow/run/tests/special-result-panel.spec.tsx | Adds conditional panel rendering + event isolation tests. |
| web/app/components/workflow/panel/version-history-panel/loading/tests/index.spec.tsx | Adds loading skeleton tests. |
| web/app/components/workflow/panel/version-history-panel/filter/tests/index.spec.tsx | Adds filter popover/switch/item tests. |
| web/app/components/workflow/panel/version-history-panel/tests/version-history-item.spec.tsx | Adds VersionHistoryItem behavior tests (draft/published/context menu). |
| web/app/components/workflow/panel/version-history-panel/tests/index.spec.tsx | Fixes import paths and improves store typing in tests. |
| web/app/components/workflow/panel/version-history-panel/tests/empty.spec.tsx | Adds empty-state reset tests. |
| web/app/components/workflow/panel/debug-and-preview/tests/index.spec.tsx | Adds width persistence tests (but currently re-implements logic). |
| web/app/components/workflow/panel/tests/inputs-panel.spec.tsx | Refactors to use ReactFlow-backed render helper. |
| web/app/components/workflow/operator/tests/index.spec.tsx | Adds operator layout + ResizeObserver synchronization tests. |
| web/app/components/workflow/operator/tests/add-block.spec.tsx | Refactors tests to use shared ReactFlow helpers/fixtures. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/operator.spec.tsx | Adds toolbar operator menu tests. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/index.spec.tsx | Adds composed toolbar interaction tests. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/font-size-selector.spec.tsx | Adds font-size selector tests. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/command.spec.tsx | Adds command button active-state/callback tests. |
| web/app/components/workflow/note-node/note-editor/toolbar/tests/color-picker.spec.tsx | Adds color-picker palette tests. |
| web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/tests/index.spec.tsx | Adds link editor visibility tests driven by store state. |
| web/app/components/workflow/note-node/note-editor/plugins/format-detector-plugin/tests/index.spec.tsx | Adds “no visible output” mount test. |
| web/app/components/workflow/note-node/note-editor/tests/editor.spec.tsx | Adds editor placeholder/focus/change forwarding tests. |
| web/app/components/workflow/note-node/note-editor/tests/context.spec.tsx | Adds provider initialization and editable/restore behavior tests. |
| web/app/components/workflow/note-node/tests/index.spec.tsx | Adds NoteNode rendering/selection behavior tests. |
| web/app/components/workflow/nodes/trigger-webhook/tests/node.spec.tsx | Adds trigger-webhook node rendering tests. |
| web/app/components/workflow/nodes/trigger-schedule/utils/tests/integration.spec.ts | Fixes import paths for integration tests. |
| web/app/components/workflow/nodes/trigger-schedule/tests/node.spec.tsx | Adds schedule node next-execution rendering tests. |
| web/app/components/workflow/nodes/start/tests/node.spec.tsx | Adds start-node variables rendering tests. |
| web/app/components/workflow/nodes/loop-start/tests/index.spec.tsx | Adds loop-start node handle/dumb variant tests. |
| web/app/components/workflow/nodes/llm/tests/utils.spec.ts | Fixes import path to tested utils. |
| web/app/components/workflow/nodes/llm/tests/panel.spec.tsx | Fixes import paths for LLM panel tests. |
| web/app/components/workflow/nodes/llm/tests/default.spec.ts | Fixes import paths for defaults tests. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-settings-display.spec.ts | Adds settings-display translation mapping tests. |
| web/app/components/workflow/nodes/knowledge-base/hooks/tests/use-embedding-model-status.spec.ts | Adds embedding model status resolution tests. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/top-k-and-score-threshold.spec.tsx | Adds more edge-case tests for hidden/cleared fields. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/search-method-option.spec.tsx | Adds search method option rendering/interaction tests. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/reranking-model-selector.spec.tsx | Refactors to shared model-provider fixtures and fixes imports. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/index.spec.tsx | Adds retrieval setting rendering tests. |
| web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/tests/hooks.spec.tsx | Adds retrieval setting hook option tests. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/tests/line.spec.tsx | Adds instruction line SVG variant tests. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/tests/index.spec.tsx | Adds instruction docs-link rendering test. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/selector.spec.tsx | Adds selector open/readonly behavior tests. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/index.spec.tsx | Fixes imports and mock paths for chunk-structure tests. |
| web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/tests/hooks.spec.tsx | Adds hook option ordering + icon renderer tests. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/option-card.spec.tsx | Adds OptionCard selection/readonly/prop-shape tests. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/index-method.spec.tsx | Adds index-method option + readonly tests. |
| web/app/components/workflow/nodes/knowledge-base/components/tests/embedding-model.spec.tsx | Fixes import path for embedding model tests. |
| web/app/components/workflow/nodes/knowledge-base/tests/utils.spec.ts | Fixes import paths for KB utils tests. |
| web/app/components/workflow/nodes/knowledge-base/tests/use-single-run-form-params.spec.ts | Adds single-run form/dependency mapping hook tests. |
| web/app/components/workflow/nodes/knowledge-base/tests/panel.spec.tsx | Fixes import paths and mocks for KB panel tests. |
| web/app/components/workflow/nodes/knowledge-base/tests/node.spec.tsx | Fixes import paths and mocks for KB node tests. |
| web/app/components/workflow/nodes/knowledge-base/tests/default.spec.ts | Fixes import paths for KB default tests. |
| web/app/components/workflow/nodes/iteration-start/tests/index.spec.tsx | Adds iteration-start handle/dumb variant tests. |
| web/app/components/workflow/nodes/end/tests/node.spec.tsx | Adds end-node output resolution tests. |
| web/app/components/workflow/nodes/data-source/tests/node.spec.tsx | Adds datasource plugin-install rendering tests. |
| web/app/components/workflow/nodes/data-source-empty/tests/index.spec.tsx | Adds datasource-empty selection forwarding tests. |
| web/app/components/workflow/nodes/code/tests/code-parser.spec.ts | Fixes imports after test folder restructure. |
| web/app/components/workflow/nodes/answer/tests/node.spec.tsx | Adds answer-node plain/variable rendering tests. |
| web/app/components/workflow/nodes/_base/components/workflow-panel/tests/index.spec.tsx | Adds width persistence tests (but currently re-implements logic). |
| web/app/components/workflow/nodes/_base/components/variable/variable-label/tests/index.spec.tsx | Adds barrel export rendering tests. |
| web/app/components/workflow/nodes/_base/components/variable/tests/match-schema-type.spec.ts | Fixes import path for schema type matcher tests. |
| web/app/components/workflow/nodes/_base/components/panel-operator/tests/index.spec.tsx | Adds PanelOperator popup/action tests. |
| web/app/components/workflow/nodes/_base/components/next-step/tests/index.spec.tsx | Adds NextStep graph rendering tests (branches/failure paths). |
| web/app/components/workflow/nodes/_base/components/layout/tests/index.spec.tsx | Adds layout barrel export tests. |
| web/app/components/workflow/nodes/_base/components/layout/tests/field-title.spec.tsx | Fixes import path for FieldTitle tests. |
| web/app/components/workflow/nodes/_base/components/input-field/tests/index.spec.tsx | Adds InputField placeholder rendering test. |
| web/app/components/workflow/nodes/_base/components/collapse/tests/index.spec.tsx | Adds Collapse controlled/uncontrolled/disabled tests. |
| web/app/components/workflow/nodes/_base/components/tests/node-control.spec.tsx | Fixes relative imports and mock paths. |
| web/app/components/workflow/nodes/_base/components/tests/field.spec.tsx | Fixes import path for Field tests. |
| web/app/components/workflow/nodes/_base/components/tests/agent-strategy.spec.tsx | Updates doc link mocking to shared helper. |
| web/app/components/workflow/hooks/tests/use-workflow.spec.ts | Refactors to use ReactFlow-backed hook renderer instead of reactflow mock-state. |
| web/app/components/workflow/hooks/tests/use-auto-generate-webhook-url.spec.ts | Refactors to real ReactFlow hook env and asserts node updates via useNodes. |
| web/app/components/workflow/header/checklist/tests/plugin-group.spec.tsx | Fixes imports after folder restructure. |
| web/app/components/workflow/header/checklist/tests/node-group.spec.tsx | Fixes imports and mock paths after restructure. |
| web/app/components/workflow/header/checklist/tests/index.spec.tsx | Fixes imports and mock paths after restructure. |
| web/app/components/workflow/header/tests/run-mode.spec.tsx | Fixes import paths after restructure. |
| web/app/components/workflow/block-selector/tests/start-blocks.spec.tsx | Adds start blocks filtering/selection tests. |
| web/app/components/workflow/block-selector/tests/index-bar.spec.tsx | Adds grouping + scroll behavior tests. |
| web/app/components/workflow/block-selector/tests/featured-triggers.spec.tsx | Adds featured triggers persistence/selection tests. |
| web/app/components/workflow/block-selector/tests/data-sources.spec.tsx | Adds datasource selection + marketplace query tests. |
| web/app/components/workflow/tests/workflow-test-env.tsx | Adds ReactFlow-backed render helpers for components/hooks. |
| web/app/components/workflow/tests/workflow-test-env.spec.tsx | Adds coverage for the new ReactFlow-backed helpers. |
| web/app/components/workflow/tests/model-provider-fixtures.ts | Adds reusable model/provider fixture factories for tests. |
| web/app/components/workflow/tests/model-provider-fixtures.spec.ts | Adds unit tests for the new fixture factories. |
| web/app/components/workflow/tests/i18n.ts | Adds shared docs-link mock helpers. |
| web/app/components/workflow/tests/fixtures.ts | Adds createNodeDataFactory helper for typed node payload builders. |
| web/app/components/workflow/tests/features.spec.tsx | Refactors to use ReactFlow-backed render helper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Important
Fixes #<issue number>.Summary
test(workflow): add unit tests for workflow components
Screenshots
Checklist
make lintandmake type-check(backend) andcd web && npx lint-staged(frontend) to appease the lint gods