gluestack

gluestack Logogluestack

TestID vs data-testid

snotax posted this in #support
Open in Discord
Avatar
snotaxOP
Hello guys. I have a question about the testid properties. Somehow depending on which component the property is on, sometimes it renders the testID={} property as testid="" in the DOM and sometimes as data-testid="".

Why does it not always use the correct data-testid attribute ?

e.g. If I use View / Box / HSTACk / VSTACK etc... it always only uses testID instead of data-testid.

Thank you in advance!

1 Reply