Testing Material UI components using Cypress
Installation
$ npx create-react-app test-material-ui
$ cd test-material-ui
$ yarn add @material-ui/core @material-ui/icons @material-ui/lab
info Direct dependencies
├─ @material-ui/[email protected]
├─ @material-ui/[email protected]
└─ @material-ui/[email protected]
$ yarn add -D [email protected]
Add cypress.json with experimental flag
Write components and specs in src folder. I recommend looking at src/autocomplete-spec.js