You have now seen Python and JavaScript test cases. Both of these work in an isolated environment, and they don't interact with each other. To test integration between JavaScript and Python code, tour test cases are used.
Adding tour test cases
Getting ready
For this recipe, we will continue using the my_library module from the previous recipe. We will add a tour test case to check the flow of the book model.
How to do it...
Follow these steps to add a tour test case for books:
- Add a /static/src/js/my_library_tour.js file, and add a tour like this:
odoo.define(...