-
Notifications
You must be signed in to change notification settings - Fork 569
test(Table): test coverage improvement #5887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lemonred
wants to merge
13
commits into
Tencent:develop
Choose a base branch
from
lemonred:feat/test-coverage-improvement
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
test(Table): test coverage improvement #5887
lemonred
wants to merge
13
commits into
Tencent:develop
from
lemonred:feat/test-coverage-improvement
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 补充 scrollToElement 函数测试(行310-335) - 补充 expose 方法测试(行346-347) - 补充 affixedFooter 渲染逻辑测试(行513-538) - 补充虚拟滚动样式计算测试(行604) - 补充滚动条分隔线和吸底元素测试(行686-691) - 添加 fake timers 支持 - 修复测试中的方法访问问题
- 重构Table组件测试结构,按功能模块组织测试文件 - 修复筛选功能测试,从模拟数据改为真正执行筛选操作 - 新增table-core.test.tsx测试核心功能 - 新增table-filtering.test.tsx测试筛选功能(42个测试) - 新增table-pagination.test.tsx测试分页功能(48个测试) - 新增table-selection.test.tsx测试选择功能(51个测试) - 新增table-sorting.test.tsx测试排序功能(36个测试) - 新增shared/test-utils.ts提供通用测试工具函数 - 删除冗余和重复的测试文件,提升测试维护性 - 所有测试通过,确保Table组件功能完整性
- Add shared test utilities (test-assertions.ts, test-constants.ts) - Split comprehensive table tests into focused test files - Add table-advanced.test.tsx for advanced features - Add table-basic.test.tsx for basic functionality - Add table-hooks.test.tsx for hook testing - Rename table.utils.comprehensive.test.tsx to table-utils.test.tsx - Update test-utils.ts with improved utilities - Enhance table-core.test.tsx - Fix ESLint issues (remove console statements, fix unused variables)
TDesign Component Site Preview Open
|
commit: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
#5631
💡 需求背景和解决方案
测试用例补充,覆盖范围:
核心功能
交互功能
高级功能
边界情况
📝 更新日志
tdesign-vue-next
test(table)
☑️ 请求合并前的自查清单