diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-03-05 17:26:04 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-03-05 17:26:04 +0100 |
| commit | 3e54704e669441e655b1fe19ee0fa0646cdbf8d5 (patch) | |
| tree | acddbce8a7f3868c1bf8f882dc959f63134f40ec /addons/website/static/src/js | |
| parent | 2c495502aa37374f3748d9ff4ab7cf9e8d9a6d6e (diff) | |
| parent | 27081bf6f5f00ccb39f82ae62d14d428bf1c9223 (diff) | |
[MERGE] forward port branch 11.0 up to 27081bf6f5f
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/tours/rte.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/website/static/src/js/tours/rte.js b/addons/website/static/src/js/tours/rte.js index 47402c016c8..843cc4898f2 100644 --- a/addons/website/static/src/js/tours/rte.js +++ b/addons/website/static/src/js/tours/rte.js @@ -150,5 +150,25 @@ tour.register('rte_translator', { }, { content: "check bis: placeholder translation", trigger: 'input[placeholder="test french placeholder"]', +}, { + content: "Open customize menu", + trigger: "#customize-menu > .dropdown-toggle", +}, { + content: "Open HTML editor", + trigger: "[data-action='ace']", +}, { + content: "Check that the editor is not showing translated content (1)", + trigger: '.ace_text-layer .ace_line:contains("an HTML")', + run: function (actions) { + var lineEscapedText = $(this.$anchor.text()).text(); + if (lineEscapedText !== "<b></b> is an HTML tag & is empty") { + console.error('The HTML editor should display the correct untranslated content'); + $('body').addClass('rte_translator_error'); + } + }, +}, { + content: "Check that the editor is not showing translated content (2)", + trigger: 'body:not(.rte_translator_error)', + run: function () {}, }]); }); |
