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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
odoo.define('sale.tour_sale_signature', function (require) {
'use strict';
var tour = require('web_tour.tour');
// This tour relies on data created on the Python test.
tour.register('sale_signature', {
test: true,
url: '/my/quotes',
},
[
{
content: "open the test SO",
trigger: 'a:containsExact("test SO")',
},
{
content: "click sign",
trigger: 'a:contains("Sign")',
},
{
content: "check submit is disabled",
trigger: '.o_portal_sign_submit:disabled',
run: function () {},
},
{
content: "click Auto",
trigger: '.o_web_sign_auto_button',
},
{
content: "check submit is enabled",
trigger: '.o_portal_sign_submit:enabled',
run: function () {},
},
{
content: "click select style",
trigger: '.o_web_sign_auto_select_style a',
},
{
content: "click style 4",
trigger: '.o_web_sign_auto_font_selection a:eq(3)',
},
{
content: "click submit",
trigger: '.o_portal_sign_submit:enabled',
},
{
content: "check it's confirmed",
trigger: '#quote_content:contains("Thank You")',
},
]);
});
|