forked from OCA/survey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsurvey_sale_generation_tour.esm.js
More file actions
79 lines (77 loc) · 2.47 KB
/
survey_sale_generation_tour.esm.js
File metadata and controls
79 lines (77 loc) · 2.47 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/** @odoo-module */
import {registry} from "@web/core/registry";
registry.category("web_tour.tours").add("test_survey_sale_generation", {
test: true,
url: "/survey/start/08b4db20-65cc-4c68-a711-cc364c54901b",
steps: () => [
{
content: "Start Survey",
trigger: "button.btn:contains('Start Survey')",
},
{
content: "Name",
trigger: "div.js_question-wrapper:contains('Name') input",
run: "text Mr. Odoo",
},
{
content: "Submit and go to Next Page",
trigger: 'button[value="next"]',
},
{
content: "E-mail address",
trigger: "div.js_question-wrapper:contains('E-mail address') input",
run: "text test@test.com",
},
{
content: "Submit and go to Next Page",
trigger: 'button[value="next"]',
},
{
content: "How many hours will you hire monthly?",
trigger:
"div.js_question-wrapper:contains('How many hours will you hire monthly?') input",
run: "text 3",
},
{
content: "Submit and go to Next Page",
trigger: 'button[value="next"]',
},
{
content: "Choose your subscription level",
trigger:
"div.js_question-wrapper:contains('Choose your subscription level') span:contains('Gold')",
},
{
content: "Choose your extras",
trigger:
"div.js_question-wrapper:contains('Choose your extras') span:contains('Advanced Backup')",
},
{
content: "Choose your extras",
trigger:
"div.js_question-wrapper:contains('Choose your extras') span:contains('Mail Management')",
},
{
content: "Submit and go to Next Page",
trigger: 'button[value="next"]',
},
{
content: "Referenced by",
trigger:
"div.js_question-wrapper:contains('Referenced by') span:contains('Other:')",
},
{
content: "Referenced by: other",
trigger: "div.js_question-wrapper textarea",
run: "text Mr. Odoo",
},
{
content: "Click Submit",
trigger: "button[value='finish']",
},
{
content: "Thank you",
trigger: "div.o_survey_finished",
},
],
});