We need to be able to :
- mock a component's methods, to provide dummy data instead of calling the server (unit testing)
- test the effect of DOM events targeting one component on another one (integration testing)
We will be using Jest. Written tests will be marked with ✔, and unwritable tests with ✘ (see these issues for more info).
- Mock
loadDatesand check the Board's heading rendering ✔ - Mock
loadMembersand check the Members rendering ✔ - Drag-drop a Task from one Member to another and check again ✘
- Change the title and check
updateNameis called ✘
- Check the Days rendering ✔
- Inject some Days and Tasks and check the Numbers' values ✔
- Edit a Task's Numbers and check again ✘
- Drag-drop a Task from one Day to another and check again, also check
updateNumbersis called, andupdateNumbersandupdateTasksare called for both days ✘
- Start dropping a Task and check CSS classes ✘
- Drop a Task and check
moveis called for it ✘
- Start dragging and check CSS classes ✘
- Start dropping one Task on another and check CSS classes ✘
- Finish dropping and check
mergeis called ✘ - Change the title and check
updateis called, do the same for the Numbers ✘ - Click the corresponding link and check
splitis called ✘ - Click the corresponding link and check
removeis called ✘
- Check the right CSS classes are applied depending on the props' values ✔
- Change the value and check
handleInputis called ✘