[FIX] web(_editor): enable mobile tests
This rev. introduces a new test suite meant to test the webclient components on mobile devices. The key 'config.device.isMobile' is forced to true in this test suite, so that mobile specific JS files are properly executed, which isn't the case in the classic JS test suite (setting isMobile to true in the test definition is too late, as the JS files are already processed). For now, this new test suite contains a single test, which was skipped until this rev. as it couldn't be executed in the classical JS test suite. Both suites are executed at each build of the runbot, and they can be manually executed from the webclient as well (via the debug manager).
Showing
- addons/web/controllers/main.py 4 additions, 0 deletionsaddons/web/controllers/main.py
- addons/web/static/src/js/widgets/debug_manager.js 14 additions, 1 deletionaddons/web/static/src/js/widgets/debug_manager.js
- addons/web/static/src/xml/base.xml 1 addition, 0 deletionsaddons/web/static/src/xml/base.xml
- addons/web/static/tests/views/kanban_mobile_tests.js 101 additions, 0 deletionsaddons/web/static/tests/views/kanban_mobile_tests.js
- addons/web/static/tests/views/kanban_tests.js 0 additions, 49 deletionsaddons/web/static/tests/views/kanban_tests.js
- addons/web/tests/test_js.py 5 additions, 0 deletionsaddons/web/tests/test_js.py
- addons/web/views/webclient_templates.xml 94 additions, 50 deletionsaddons/web/views/webclient_templates.xml
- addons/web_editor/views/editor.xml 6 additions, 2 deletionsaddons/web_editor/views/editor.xml
Loading
Please register or sign in to comment