[PR #32409] test: add unit tests for base-components-part-2[In-Progress Still Not completed] #33726

Open
opened 2026-02-21 20:53:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/32409

State: open
Merged: No


Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Test Coverage Summary

Component File Statements Branches Functions Lines
Radio Group index 100% 100% 100% 100%
Radio Item index 100% 100% 100% 100%
Radio Context index 100% 100% 100% 100%
Radio Base index 100% 100% 100% 100%
Radio UI ui 100% 100% 100% 100%
Radio Card index 100% 100% 100% 100%
Radio Card Simple index 100% 100% 100% 100%
Amplitude AmplitudeProvider 95.65% 86.66% 85.71% 95.65%
markdown-blocks audio-block 100% 100% 100% 100%
button 100% 87.5% 100% 100%
paragraph 100% 100% 100% 100%
plugin-paragraph 100% 100% 100% 100%
pre-code 100% 100% 100% 100%
workflow Agent 100% 100% 100% 100%
Answer 100% 100% 100% 100%
ApiAggregate 100% 100% 100% 100%
Assigner 100% 100% 100% 100%
Asterisk 100% 100% 100% 100%
CalendarCheckLine 100% 100% 100% 100%
Code 100% 100% 100% 100%
Datasource 100% 100% 100% 100%
DocsExtractor 100% 100% 100% 100%
End 100% 100% 100% 100%
Home 100% 100% 100% 100%
Http 100% 100% 100% 100%
HumanInLoop 100% 100% 100% 100%
IfElse 100% 100% 100% 100%
iteration 100% 100% 100% 100%
IterationStart 100% 100% 100% 100%
Jinja 100% 100% 100% 100%
KnowledgeBase 100% 100% 100% 100%
KnowledgeRetrieval 100% 100% 100% 100%
ListFilter 100% 100% 100% 100%
Llm 100% 100% 100% 100%
Loop 100% 100% 100% 100%
LoopEnd 100% 100% 100% 100%
ParameterExtractor 100% 100% 100% 100%
QuestionClassifier 100% 100% 100% 100%
Schedule 100% 100% 100% 100%
TemplatingTransform 100% 100% 100% 100%
TriggerAll 100% 100% 100% 100%
VariableX 100% 100% 100% 100%
WebhookLine 100% 100% 100% 100%
WindowCursor 100% 100% 100% 100%

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/32409 **State:** open **Merged:** No --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 1. Ensure there is an associated issue and you have been assigned to it > 1. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Test Coverage Summary | Component | File | Statements | Branches | Functions | Lines | |---|---|---|---|---|---| | **Radio Group** | index | 100% | 100% | 100% | 100% | | **Radio Item** | index | 100% | 100% | 100% | 100% | | **Radio Context** | index | 100% | 100% | 100% | 100% | | **Radio Base** | index | 100% | 100% | 100% | 100% | | **Radio UI** | ui | 100% | 100% | 100% | 100% | | **Radio Card** | index | 100% | 100% | 100% | 100% | | **Radio Card Simple** | index | 100% | 100% | 100% | 100% | | **Amplitude** | AmplitudeProvider | 95.65% | 86.66% | 85.71% | 95.65% | | **markdown-blocks** | audio-block| 100% | 100% | 100% | 100% | | | button | 100% | 87.5% | 100% | 100% | | | paragraph| 100% | 100%| 100% | 100% | | | plugin-paragraph| 100% | 100%| 100% | 100% | | | pre-code| 100% | 100% | 100% | 100% | | **workflow** | Agent| 100% | 100% | 100% | 100% | | | Answer| 100% | 100% | 100% | 100% | | | ApiAggregate| 100% | 100% | 100% | 100% | | | Assigner| 100% | 100% | 100% | 100% | | | Asterisk| 100% | 100% | 100% | 100% | | | CalendarCheckLine| 100% | 100% | 100% | 100% | | | Code| 100% | 100% | 100% | 100% | | | Datasource| 100% | 100% | 100% | 100% | | | DocsExtractor| 100% | 100% | 100% | 100% | | | End| 100% | 100% | 100% | 100% | | | Home| 100% | 100% | 100% | 100% | | | Http| 100% | 100% | 100% | 100% | | | HumanInLoop| 100% | 100% | 100% | 100% | | | IfElse| 100% | 100% | 100% | 100% | | | iteration| 100% | 100% | 100% | 100% | | | IterationStart| 100% | 100% | 100% | 100% | | | Jinja| 100% | 100% | 100% | 100% | | | KnowledgeBase| 100% | 100% | 100% | 100% | | | KnowledgeRetrieval| 100% | 100% | 100% | 100% | | | ListFilter| 100% | 100% | 100% | 100% | | | Llm| 100% | 100% | 100% | 100% | | | Loop| 100% | 100% | 100% | 100% | | | LoopEnd| 100% | 100% | 100% | 100% | | | ParameterExtractor| 100% | 100% | 100% | 100% | | | QuestionClassifier| 100% | 100% | 100% | 100% | | | Schedule| 100% | 100% | 100% | 100% | | | TemplatingTransform| 100% | 100% | 100% | 100% | | | TriggerAll| 100% | 100% | 100% | 100% | | | VariableX| 100% | 100% | 100% | 100% | | | WebhookLine| 100% | 100% | 100% | 100% | | | WindowCursor| 100% | 100% | 100% | 100% | ## Screenshots | Before | After | |--------|-------| | ... | ... | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `make lint` and `make type-check` (backend) and `cd web && npx lint-staged` (frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:53:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33726