Skip to content
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

element id 动态生成导致 e2e 测试脚本不工作 #742

Open
yinzhenyu-su opened this issue Dec 5, 2024 · 0 comments
Open

element id 动态生成导致 e2e 测试脚本不工作 #742

yinzhenyu-su opened this issue Dec 5, 2024 · 0 comments

Comments

@yinzhenyu-su
Copy link

版本号

@form-create/ant-design-vue": "^3.2.13"

UI 框架的版本 (UI version)

"ant-design-vue": "^4.2.6"

问题描述 (Issue)

动态渲染的组件 id 也是动态的,页面刷新后 id 会重新生成,导致录制的 e2e 脚本无法工作
image

期望的结果 (Desired outcome)

id 在页面重新加载后保持不变

建议 (Advice)

是否可以添加一个 htmlId 的配置项,用来手动控制 id 生成

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant