Setting up Headless Chrome for client-side test cases
Odoo employs Headless Chrome to execute JavaScript and tour test cases, facilitating the simulation of end-user environments. Headless Chrome, devoid of the complete UI, enables seamless execution of JavaScript test cases, ensuring a consistent testing environment.
How to do it...
You will need to install Chrome to enable a JavaScript test case. For the development of the modules, we will mostly use the desktop OS. Consequently, if you have a Chrome browser installed on your system, then there is no need to install it separately. You can run client-side test cases with desktop Chrome. Make sure that you have a Chrome version higher than Chrome 59. Odoo also supports the Chromium browser.
Note
Headless Chrome client-side test cases work fine with macOS and Linux, but Odoo does not support Headless Chrome test cases on Windows.
The situation changes slightly when you want to run test cases on the production server or...