Topic: Add the opportunity to use non random ids in material selects
Schulz pro asked 6 years ago
At the moment the id for the <ul> element of material select is randomly generated. This approach makes those elements untestable in browser tests because they aren't clickable.
Well we could select the element by class but this works only as long as we only have one select in the form.
Please add the opportunity to genereate the id from the native select id. For example: select-options-NATIVE-SELECT-ID. This way the id would be predictable.
Otherwise please provide a workaround to make material selects testable.
Pls. look at this for more detailed information: https://stackoverflow.com/questions/53404831/wrapped-selects-breaking-dusk-tests
Btw. I'm using .12 unfortunately you still didn't update the version select in this form.
Sebastian Kaczmarek staff answered 6 years ago
I can see that you have found a temporary workaround for this under your question on SO.
We will definitely consider adding such feature to the Material Select. I will get back to you as soon as it is fixed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Sebastian Kaczmarek staff commented 6 years ago
BTW The version select has been just updated ;)