summaryrefslogtreecommitdiff
path: root/addons/test_event_full/static/src/js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-08-17 13:11:45 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-17 16:29:52 +0000
commit040c43945082bf26b7e2edf29d2d7e45eea7f58b (patch)
tree8b4a1763413aebd0db0d52dca7000cd43628f027 /addons/test_event_full/static/src/js
parent5ee37a42f70d3ec1d2ed775119d673cbbfae9a66 (diff)
[IMP] test_event_full: improve full tour registration test
Adding some steps and checks, notably * add questions and fill them while registering; * in unit test launching tour, check content of registration as well as visitor; LINKS Task ID-2169118 odoo/odoo#55967 odoo/enterprise#12438 X-original-commit: 83f5c49f8f6734ab2beb9347029cbb69d154d15d
Diffstat (limited to 'addons/test_event_full/static/src/js')
-rw-r--r--addons/test_event_full/static/src/js/tours/wevent_register_tour.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/addons/test_event_full/static/src/js/tours/wevent_register_tour.js b/addons/test_event_full/static/src/js/tours/wevent_register_tour.js
index 5d1ba5102f7..7d24c0ef0c6 100644
--- a/addons/test_event_full/static/src/js/tours/wevent_register_tour.js
+++ b/addons/test_event_full/static/src/js/tours/wevent_register_tour.js
@@ -91,9 +91,12 @@ var registerSteps = [{
$("input[name='1-name']").val("Raoulette Poiluchette");
$("input[name='1-phone']").val("0456112233");
$("input[name='1-email']").val("raoulette@example.com");
+ $("select[name*='question_answer-1']").val($("select[name*='question_answer-1'] option:contains('Consumers')").val());
$("input[name='2-name']").val("Michel Tractopelle");
$("input[name='2-phone']").val("0456332211");
$("input[name='2-email']").val("michel@example.com");
+ $("select[name*='question_answer-2']").val($("select[name*='question_answer-1'] option:contains('Research')").val());
+ $("textarea[name*='question_answer']").text("An unicorn told me about you. I ate it afterwards.");
},
}, {
content: "Validate attendees details",
@@ -101,8 +104,15 @@ var registerSteps = [{
trigger: 'button:contains("Continue")',
run: 'click',
}, {
- trigger: 'h3:contains("Registration confirmed!")',
+ trigger: 'div.o_wereg_confirmed_attendees span:contains("Raoulette Poiluchette")',
run: function () {} // check
+}, {
+ trigger: 'div.o_wereg_confirmed_attendees span:contains("Michel Tractopelle")',
+ run: function () {} // check
+}, {
+ content: "Click on 'register favorites talks' button",
+ trigger: 'a:contains("register to your favorites talks now")',
+ run: 'click',
}];
/**