Debugging client-side test cases
Developing complex client-side test cases can be a headache. In this recipe, you will learn how you can debug the client-side test cases in Odoo. Instead of running all of the test cases, we will run just the one. Additionally, we will display the UI of the test case.
Getting ready
For this recipe, we will continue using the my_hostel
module from the previous recipe.
How to do it...
Follow these steps to run a test case in debug mode:
- Open the
/static/tests/colorpicker_test.js
file and update and add themakeView
function, like this:await makeView({ Â Â Â Â type: "form", Â Â Â Â resModel: "hostel.room", Â Â Â Â serverData: { Â Â Â Â Â Â Â Â models: { Â Â Â Â Â Â Â Â Â Â Â Â 'hostel.room': { Â Â Â Â Â Â Â Â Â Â Â Â Â Â ...