summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-11-03 14:57:17 +0100
committerNicolas Lempereur <nle@odoo.com>2015-11-03 16:00:46 +0100
commit0a0df28fd9529605ad3c78599abfa2468c8fc19e (patch)
tree0a6e89caeafadc6cdd014c9c27bc2292d4f01490 /addons/website/static/src
parentee46560004f2301d9c47dfb25b37ce2ee06759cb (diff)
[IMP] website: add special char to rte_translator tour
To test the the use case solved with f5acea7.
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.tour.rte.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.tour.rte.js b/addons/website/static/src/js/website.tour.rte.js
index b8d94ecf643..53bc4b1bcfe 100644
--- a/addons/website/static/src/js/website.tour.rte.js
+++ b/addons/website/static/src/js/website.tour.rte.js
@@ -58,7 +58,8 @@ Tour.register({
onload: function () {
$("#wrap p:first").replaceWith('<p>Write one or <font style="background-color: yellow;">two paragraphs <b>describing</b></font> your product or\
<font style="color: rgb(255, 0, 0);">services</font>. To be successful your content needs to be\
- useful to your <a href="/999">readers</a>.</p> <input placeholder="test translate placeholder"/>');
+ useful to your <a href="/999">readers</a>.</p> <input placeholder="test translate placeholder"/>\
+ <p>&lt;b&gt;&lt;/b&gt; is an HTML&nbsp;tag &amp; is empty</p>');
$("#wrap img").attr("title", "test translate image title");
}
},
@@ -100,6 +101,13 @@ Tour.register({
element: 'input:first',
},
{
+ title: "translate text with special char",
+ onload: function () {
+ $('#wrap input + p').find(':last').prepend('&lt;{translated}&gt;')
+ .closest('[data-oe-translation-id]').addClass('o_dirty').trigger('keyup');
+ },
+ },
+ {
title: "translate placeholder",
element: '.modal.web_editor-dialog input:first',
sampleText: 'test french placeholder',
@@ -120,6 +128,10 @@ Tour.register({
waitFor: '#wrap p font:first:contains(translated french text)',
},
{
+ title: "check: content with special char is translated",
+ waitFor: "#wrap input + p:contains(<{translated}><b></b> is an HTML\xa0tag & )",
+ },
+ {
title: "check: placeholder translation",
waitFor: 'input[placeholder="test french placeholder"]',
},