Why does the disabled check for custom web components require formAssociated? #1282
Unanswered
richard-smith-preservica
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is an explicit decision, in utils/misc/isDisabled:
We have web components that support disabled state, but userEvent.click was still 'clicking' on them when disabled, even though real browser interaction wasn't (because the elements inside it were also disabled). This was resulting in a test incorrectly failing because it 'clicked' on disabled elements and performed actions that were not actually available in the UI.
My question is: why is an element exposing a "disabled" attribute not a good enough indicator that it should be considered disabled from the perspective of tests?
Beta Was this translation helpful? Give feedback.
All reactions