1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
odoo.define('website.tour.specific_website_editor', function (require) {
'use strict';
var tour = require('web_tour.tour');
tour.register('generic_website_editor', {
test: true,
}, [{
trigger: 'a[data-action=edit]',
content: 'Click edit button',
}, {
trigger: 'body:not([data-hello="world"])',
extra_trigger: '#oe_snippets.o_loaded',
content: 'Check that the editor DOM matches its website-generic features',
run: function () {}, // Simple check
}]);
tour.register('specific_website_editor', {
test: true,
}, [{
trigger: 'a[data-action=edit]',
content: 'Click edit button',
}, {
trigger: 'body[data-hello="world"]',
extra_trigger: '#oe_snippets.o_loaded',
content: 'Check that the editor DOM matches its website-specific features',
run: function () {}, // Simple check
}]);
});
|