summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils_control_panel.js
AgeCommit message (Collapse)Author
2020-07-23[IMP] web: TestUtils findItemJulien Mougenot
Extraction of the findItem function from the control panel test utils to the dom utils. This function helps find an item matching a given selector and: - having the given text as its inner text OR - being the item at the given index An error is thrown if no item matches the predicate
2020-06-04[IMP] web: adapt test_utils_control_panelMathieu Duckerts-Antoine
The control panel test helpers related to the "time range" menu have been removed and a new helper for the "comparison" menu has been added. Task ID: 2245719 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Julien Mougenot <jum@odoo.com>
2020-03-13[IMP] web,*: Enhance test helpersJulien Mougenot
1. Test utils helpers adapted to properly instantiate the new Owl control panel 2. New file 'test_utils_control_panel' to create a control panel and use helpers 3. New helper: createComponent (creates a generic component, see jsdoc) 4. Use of the new helpers in the current tests (more in sibling commits) 5. Helper 'addMockEnvironment' is now asynchronous 6. Owl config mode set to 'dev' in test suite (props validation) Part of task 2196029 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>