Closed micobarac closed 5 years ago
Anyone knows how to handle this?
Actually, I found out what the problem was. If you let mat-chekbox to flex out to available parent space, clicking on it (without clicking on label) won't do any effective checbox action. So, I wrapped the mat-checkbox inside flex container, causing it's width to be auto, and the click() started working...
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Reproduction
protractor.conf.js
service.component.html
service.po.ts
service.e2e-spec.ts
Expected Behavior
I expect elem.click() to work in Protractor on mat-checkbox.
If I switch to native HTML checkbox, elem.click() works just fine.
Actual Behavior
No errors, but mat-checkbox stays unchecked, no matter what.
Environment
package.json