96f456a226b82c1d72c5e398fd1c3d186fd77440
The mobile-specific code relies on the size of the browser <= SM (currently 767px). But when phantomjs was used to run the JS tests headlessly there was no way to force that size for the mobile test suite (e.g. when running from the command line, runbot...). The only solution was to mock some variables (isMobile, size_class) in web.config to force them to mobile-like values (see commits odoo/odoo@9bc5009481 and odoo/odoo@497dfb6917). Since the switch to Chrome Headless the browser size is set to a mobile-friendly size (currently 375x667) when the mobile test suite is ran. So isMobile is automatically set to true. The code to mock the web.config has then become redundant. This commit removes it to only rely on the browser window size for the mobile test suite execution. Notes: When testing manually in the browser it's now required to set the browser window to a mobile-friendly size. Even if it was already the case, it will provide a more realistic environment and allows to test important/behavior-related media queries (e.g. clicking on a button only visible/present on mobile). BTW the easiest way to run all tests is to execute them directly using Chrome Headless (except for debugging of course). closes odoo/odoo#36328 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%