summaryrefslogtreecommitdiff
path: root/addons/web_editor/tests
AgeCommit message (Collapse)Author
2019-01-26[IMP] fields: selection fields only use stringsXavier Morel
closes odoo/odoo#29039
2019-01-17[ADD] web_editor,*: Tests for new structure of web editorAntoine Guenet
The refactoring also had to be done in order to create a set of unit tests. Each behavior can be tested, including the behaviors performed as a consequence of keyboard interactions (for instance: Enter, Tab...). This commit also contains some changes to test_utils that were necessary given the new structure of the wysiwyg editor. Co-authored-by: Gorash <chm@odoo.com>
2018-01-18[IMP] tests: Add the possibility to tag testsChristophe Monniez
Purpose: When running tests, all the tests for the installed/updated files are done. This commit adds a 'tagged' decorator that can be used to tag tests. Combined with a new 'test-tags' CLI option, it adds the ability to filter which tests are executed. For example, @tagged('slow') will add a tag 'slow' to the test. The CLI option 'test-tags="slow"' will only run tests tagged 'slow'. One can use prefixes to select cases with tags. '+' or no prefix means that the tests tagged with this tag are selected for execution. '-' prefix will exclude the tests tagged with this tag. Exclusion takes precedence over inclusion. Also, by default, all Odoo tests cases are tagged 'standard' and with the technical name of the module. This means that when selecting tests with the 'test-tags' parameter, if '-standard' is not specified, all tests tags are going to be executed. When tagging tests, one can remove such automatic tag by prefixing the tag name with '-'. E.g. @tagged('-standard') will remove the standard tag from the test. Another example, if one wants to test the 'sale' module alone, even without adding any 'tagged' decorator thos tests can be selected like that: --test-tags="sale" Tests are selected or deselected using a TagsSelector. When instanciated, a string is passed with comma separated tests selectors like '+slow,-standard'. When the 'check' method is called with a test as argument, it returns True or False if the test has to be executed or not.
2017-08-20[FIX] P3: cross-version binary data is bytes, not strXavier Morel
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2016-08-30[IMP] web_editor: convert tours to use web_tour.tourChristophe Matthieu
2016-08-20[MERGE] forward port branch saas-12 up to 9ad5f26Christophe Simonis
2016-08-20[MERGE] forward port branch saas-11 up to 3a2147dChristophe Simonis
2016-08-20[MERGE] forward port branch saas-10 up to bc1a0a3Christophe Simonis
2016-08-19[MERGE] forward port branch 9.0 up to 58cbcbaChristophe Simonis
2016-08-09[FIX] web_editor: test ui should be in post installSimon Lejeune
This test is ran in the backend and, if we do not mark it as post install, the dependencies of the web module are not installed. The webclient will then errors like "View type 'kanban' is not present in the view registry".
2016-08-03[MIG] web_editor: migrate to new apifwi-odoo
2016-06-15[MERGE] forward port of branch saas-11 up to dda0d3dChristophe Simonis
# Conflicts: # addons/product_uos/i18n/lo.po # addons/sales_team/models/__init__.py # addons/website_payment/views/website_payment_templates.xml # addons/website_portal_sale/views/templates.xml # openerp/addons/base/ir/ir_qweb.py
2016-06-15[MERGE] forward port of branch saas-10 up to baf494cChristophe Simonis
# Conflicts: # addons/hr_timesheet/project_timesheet.py # addons/sale_layout/i18n/es_PE.po # addons/sale_layout/i18n/hu.po # addons/sale_layout/i18n/lo.po # addons/sale_layout/i18n/pl.po # addons/sale_service/i18n/es_MX.po # addons/sale_service/i18n/es_PE.po # addons/sale_service/i18n/lo.po # addons/stock/stock.py # addons/stock/stock_view.xml # addons/warning/i18n/es_PE.po # addons/warning/i18n/lo.po # addons/warning/i18n/ru.po # addons/web/i18n/cs.po # addons/web/i18n/ja.po # addons/web/i18n/lo.po # addons/web/i18n/th.po
2016-06-14[FIX] ir.qweb: update testsChristophe Matthieu
2016-06-14[IMP] base ir.qweb: add and update tests for the new ir.qwebChristophe Matthieu
2016-06-13[FIX] web_editor: run rte tests in post_installSimon Lejeune
The test begins by opening the webclient which default view is the kanban view of the apps. However, by running this test at the web module installation, web_kanban is not yet installed.
2016-03-21[FIX] base: fix and complete migration of base/irRaphael Collet
- add or fix decorators on methods - fix most compute methods (wrong dependencies) - revert changes in `eval_context` of `ir.actions` - various code simplifications and improvements - migrate methods that were not - ir_qweb: modify `QWebContext` to take an environment instead of `cr`, `uid`, `context` - ir_qweb: convert `AssetsBundle` to use new API `env` - ir_ui_view: use decorator `multi` on method `read_combined` - ir_ui_view: ensure that method `render` is never called with an xml_id - ir_ui_view: factor out part of the `ormcache` key of method `_read_template`
2015-09-28[IMP] unittest2 > unittestLeonardo Rochael Almeida
The `unittest2` package is simply a backport of `unittest` from the Standard Library of Python 2.7 to previous versions. There is no reason to use it any longer. Closes #6941
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website