You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently updated our application to the latest version of PrimeNG, but some of our automated tests began to fail as it couldn't find some elements within the Tree component anymore.
We found that the automated tests are looking for the data-id attribute on each node, which was populated previously with the content of the key attribute on the TreeNode.
Did some digging in the commit history and found that on this commit, the attributes and event were moved from a div to a li, but the data-id attribute did not carry across:
Thanks a lot for your PR! But, we plan to fix such problems with the new passthrough API. We are currently working on it and will give an update on it soon. Please see our PrimeVue passthrough API; https://primevue.org/tree/#pt.image
For now, closed. Thanks a lot for your understanding!
Best Regards,
Sorry, I'm a little confused about the response, we don't use Vue.js within our application, we use the Angular framework, having the fix in the PrimeVue API will not resolve this problem for us?
I have just been through this and have come to the same conclusion as @adyeardley, are we missing something? Or is @adyeardley correct and fixing PrimeVue will not help this issue? These IDs are actually pretty important for our implementation of automation testing.
Describe the bug
We recently updated our application to the latest version of PrimeNG, but some of our automated tests began to fail as it couldn't find some elements within the Tree component anymore.
We found that the automated tests are looking for the data-id attribute on each node, which was populated previously with the content of the key attribute on the TreeNode.
Did some digging in the commit history and found that on this commit, the attributes and event were moved from a div to a li, but the data-id attribute did not carry across:
12d79f7
Environment
Angular 17 Web App
Reproducer
No response
Angular version
17.0.6
PrimeNG version
17.3.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
All Browsers
Steps to reproduce the behavior
Open a tree component with nodes inside
Inspect Element of any of the nodes
data-id is not populated with the 'key' of the node
Expected behavior
data-id should be present and populated with the content of the 'key' of the node
The text was updated successfully, but these errors were encountered: