Hey guys, a quick question. Is there any way to in...
# gooddata-ui
g
Hey guys, a quick question. Is there any way to include data-testid for visuals? We are building some test automation to validate the data against the old platform and it would be super helpful
j
Hello Giacomo, I'm afraid I'm a bit unfamiliar with the data-testID. Could you please provide a screenshot or details as to where you find this ID specifically?
g
Hey, what I meant is include some sort of id that we could use to locate an element on html. I mentioned data-testid because I noticed the devs on GoodData are using already:
If we could do something like that it would be easier to find a value in the UI during test automation
j
Thanks Giacomo for the details here. Whern using GoodData.UI (React SDK), I recommend wrapping each component in a
div
with a custom
data-testid
for a stable test automation, but what you are asking for as for the visualizations is not currently possible. We can certainly try and submit this as product feedback on your behalf.
g
Ok, I appreciate that. Thanks