diff options
| author | Antoine Guenet <age@odoo.com> | 2018-12-28 17:59:35 +0000 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2019-01-17 08:40:21 +0000 |
| commit | eb0ea8efbe932c140302e9f8da33a839bcd73146 (patch) | |
| tree | e097625171b2b67ed5f5288ced67446608b9f633 /addons/web_tour/static/src | |
| parent | f296992317e96562c66bd7ad59a5080d6c551ed5 (diff) | |
[ADD] web_editor,*: Tests for new structure of web editor
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>
Diffstat (limited to 'addons/web_tour/static/src')
| -rw-r--r-- | addons/web_tour/static/src/js/running_tour_action_helper.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_tour/static/src/js/running_tour_action_helper.js b/addons/web_tour/static/src/js/running_tour_action_helper.js index 1c4df6c27db..479f3a2ea78 100644 --- a/addons/web_tour/static/src/js/running_tour_action_helper.js +++ b/addons/web_tour/static/src/js/running_tour_action_helper.js @@ -92,7 +92,11 @@ var RunningTourActionHelper = core.Class.extend({ $selectedOption.prop("selected", true); this._click(values); } else { + values.$element.focusIn(); + values.$element.trigger($.Event( "keydown", {key: '_', keyCode: 95})); values.$element.text(text); + values.$element.focusInEnd(); + values.$element.trigger($.Event( "keyup", {key: '_', keyCode: 95})); } values.$element.trigger("change"); }, |
