Hi, i'm trying to test my select component with puppeteer.
Current Behavior 😯
i'm trying this:
document.querySelector('[data-testid="my-select"] [role="button"]').click()
and it seems to do nothing.
it worked before in version 4.6.1
also it seems that since that version right click on Select also open the component what didn't happened in the version 4.6.1
Expected Behavior 🤔
document.querySelector('[data-testid="my-select"] [role="button"]').click()
should trigger the click event on the select and open the component
Context 🔦
this issue effecting on all my tests (unit tests, ui tests).
because i can't find a way to trigger click event on the select through code.
Your Environment 🌎
| Tech |
Version |
| Material-UI |
v4.8.3 |
| React |
v16.8.5 |
| Jest |
v24.8.0 |
| Puppeteer |
v2.0.0 |
| etc. |
|
Hi, i'm trying to test my select component with puppeteer.
Current Behavior 😯
i'm trying this:
document.querySelector('[data-testid="my-select"] [role="button"]').click()
and it seems to do nothing.
it worked before in version 4.6.1
also it seems that since that version right click on Select also open the component what didn't happened in the version 4.6.1
Expected Behavior 🤔
document.querySelector('[data-testid="my-select"] [role="button"]').click()
should trigger the click event on the select and open the component
Context 🔦
this issue effecting on all my tests (unit tests, ui tests).
because i can't find a way to trigger click event on the select through code.
Your Environment 🌎