[IMP] wesbite: add comment in tour

closes odoo/odoo#60784

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Goaman
2020-10-27 15:29:28 +00:00
parent 1981f175a6
commit 60e165e60b
2 changed files with 6 additions and 0 deletions
@@ -33,8 +33,11 @@ tour.register('test_reset_page_view_complete_flow_part1', {
trigger: "#oe_snippets .oe_snippet:has(.s_cover) .oe_snippet_thumbnail:not(.o_we_already_dragging)",
run: () => {
const wysiwyg = $('#wrapwrap').data('wysiwyg');
// Retrieve the editor node.
const node = wysiwyg.editorHelpers.getNodes(document.querySelector('#oe_structure_test_website_page'))[0];
if (node.dirty) {
// As the tour test selectors, add class for the next step
// to test if the node is dirty
$('#oe_structure_test_website_page').addClass('o_dirty');
}
},
@@ -24,8 +24,11 @@ tour.register('html_editor_multiple_templates', {
trigger: '#oe_snippets .oe_snippet:has(.s_cover) .oe_snippet_thumbnail:not(.o_we_already_dragging)',
run: () => {
const wysiwyg = $('#wrapwrap').data('wysiwyg');
// Retrieve the editor node.
const node = wysiwyg.editorHelpers.getNodes(document.querySelector('#oe_structure_test_ui'))[0];
if (node.dirty) {
// As the tour test selectors, add class for the next step
// to test if the node is dirty
$('#oe_structure_test_ui').addClass('o_dirty');
}
},