Display value not present in the DOM for E2E Testing #3416
Unanswered
ruffjaxson
asked this question in
Help
Replies: 1 comment
-
Having the same issue. Because the data is already client facing as a temporary workaround making a hidden div with the value selection from the combobox allowed the tests to pass.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(using Headless 2.1)
I'm trying to switch all of the drop-downs in our app over to the Combobox.
We have extensive E2E tests using Cypress. These tests use the pickers, and then check the display values. From what I can tell, the combobox does not expose the selected item's display value in the DOM... yet it's somehow appearing inside the input element.
To be clear, even though there is a value selected, when I CMD+F in the dev console Elements tab for 'Hawaii', I only see the hidden input with the right value. I need to see the display value somewhere in the DOM for proper E2E testing.
The cypress code:
Our combobox:
Any help greatly appreciated. Thank you 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions