-
Notifications
You must be signed in to change notification settings - Fork 2
Test/shared-update #627
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
LZS911
wants to merge
28
commits into
pnpm-update
Choose a base branch
from
test/shared-update
base: pnpm-update
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/shared-update #627
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
[fix]: select latest created tag when multiple tags exist [skip ci]
[chore](cli): adjust code according to api-client changes
[fix](DataSource): Unable to select after resetting the project form field
…repository access in quick audit
Feature/git-ssh-config
[feature](sqle/DataSOurceComparison) add height property to enable virtual scrolling
[fix]: remove redundant ConfigProvider instances
…repository access in quick audit
…o test/shared-update
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.
basefrom #620
修复内容
锁定 antd/cssinjs 依赖版本,解决了 antd 样式哈希值不稳定导致的快照测试不通过问题应该和这个依赖没啥关系,这个 hash 值的生成应该也是根据具体的 css 内容计算出来的,如果对应的组件的 css 发生变化了,那这个值就会变,看起来是没法固定了。
测试优化(packages/shared)
快照测试优化
整合单元测试渲染工具,统一使用 superRender 进行组件渲染
设置 hashed:false 静态配置,移除 antd css dev hash
,用于消除快照中的动态样式标识符,减少无意义的快照差异
测试用例优化
重写了部分组件的单元测试,重写内容如下:
优化测试用例断言方式
减少使用全页面快照匹配,更多采用 DOM 节点断言
优化部分测试用例名称和描述