summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/tests/field_html_tests.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-05-28 10:04:43 +0000
committerqsm-odoo <qsm@odoo.com>2020-06-02 09:42:19 +0000
commitd9c4d928f7c7e148d024cb56f53e6bfb98389f6d (patch)
tree7f3a5a4a98065447a82f38cdfa52b1b87a47c5d5 /addons/web_editor/static/tests/field_html_tests.js
parent69190959ce8e08481be7ebdfefd314edf0c5dce1 (diff)
[IMP] web_editor, *: integrate new o_cc${xxx} classes in the colorpicker
*: website Part of https://github.com/odoo/odoo/pull/45856 task-2197038
Diffstat (limited to 'addons/web_editor/static/tests/field_html_tests.js')
-rw-r--r--addons/web_editor/static/tests/field_html_tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/static/tests/field_html_tests.js b/addons/web_editor/static/tests/field_html_tests.js
index ea20cdc5623..d1e83c32393 100644
--- a/addons/web_editor/static/tests/field_html_tests.js
+++ b/addons/web_editor/static/tests/field_html_tests.js
@@ -201,7 +201,7 @@ QUnit.module('web_editor', {}, function () {
assert.ok($field.find('.note-back-color-preview').hasClass('show'),
"should display the color picker");
- await testUtils.dom.click($field.find('.note-toolbar .note-back-color-preview button[style="background-color:#00FFFF;"]'));
+ await testUtils.dom.click($field.find('.note-toolbar .note-back-color-preview .o_we_color_btn[style="background-color:#00FFFF;"]'));
assert.ok(!$field.find('.note-back-color-preview').hasClass('show'),
"should close the color picker");
@@ -227,7 +227,7 @@ QUnit.module('web_editor', {}, function () {
// text is selected
await openColorpicker('.note-toolbar .note-back-color-preview');
- await testUtils.dom.click($field.find('.note-toolbar .note-back-color-preview button.bg-gamma'));
+ await testUtils.dom.click($field.find('.note-toolbar .note-back-color-preview .o_we_color_btn.bg-gamma'));
assert.strictEqual($field.find('.note-editable').html(),
'<p>t<font style="background-color: rgb(0, 255, 255);">oto t</font><font style="" class="bg-gamma">oto&nbsp;</font><font class="bg-gamma" style="">to</font>to</p><p>tata</p>',
@@ -386,7 +386,7 @@ QUnit.module('web_editor', {}, function () {
}
await openColorpicker('.note-toolbar .note-back-color-preview');
- await testUtils.dom.click($field.find('.note-toolbar .note-back-color-preview button.bg-gamma'));
+ await testUtils.dom.click($field.find('.note-toolbar .note-back-color-preview .o_we_color_btn.bg-gamma'));
await testUtils.form.clickSave(form);