diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/website_event_questions/static | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/website_event_questions/static')
| -rw-r--r-- | addons/website_event_questions/static/description/icon.png | bin | 0 -> 12064 bytes | |||
| -rw-r--r-- | addons/website_event_questions/static/description/icon.svg | 1 | ||||
| -rw-r--r-- | addons/website_event_questions/static/tests/tours/tickets_questions.js | 59 |
3 files changed, 60 insertions, 0 deletions
diff --git a/addons/website_event_questions/static/description/icon.png b/addons/website_event_questions/static/description/icon.png Binary files differnew file mode 100644 index 00000000..795a2665 --- /dev/null +++ b/addons/website_event_questions/static/description/icon.png diff --git a/addons/website_event_questions/static/description/icon.svg b/addons/website_event_questions/static/description/icon.svg new file mode 100644 index 00000000..9d7f4970 --- /dev/null +++ b/addons/website_event_questions/static/description/icon.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="70" height="70" viewBox="0 0 70 70"><defs><path id="a" d="M4 0h61c4 0 5 1 5 5v60c0 4-1 5-5 5H4c-3 0-4-1-4-5V5c0-4 1-5 4-5z"/><linearGradient id="c" x1="100%" x2="0%" y1="0%" y2="100%"><stop offset="0%" stop-color="#DA956B"/><stop offset="100%" stop-color="#CC7039"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><g mask="url(#b)"><path fill="url(#c)" d="M0 0H70V70H0z"/><path fill="#FFF" fill-opacity=".383" d="M4 1h61c2.667 0 4.333.667 5 2V0H0v3c.667-1.333 2-2 4-2z"/><path fill="#393939" d="M4 69c-2 0-4-.146-4-4.074v-21.23l18-17.474 9-7.13 10-1.018 8 3.056L46 14h9v11.204l-4 3.055 2 7.13-1 9.167L39.478 69H4z" opacity=".324"/><path fill="#000" fill-opacity=".383" d="M4 69h61c2.667 0 4.333-1 5-3v4H0v-4c.667 2 2 3 4 3z"/><path fill="#000" d="M24.762 52.559V50c-3.65-2.952-4.016-8.81-1.095-17.571l9.767 1.485A79.883 79.883 0 0 1 33 32l10-3c3.333 10 3.667 15.667 1 17l1.4 4.898c3.439-3.111 5.6-7.61 5.6-12.612 0-9.39-7.611-17-17-17s-17 7.61-17 17c0 5.982 3.09 11.243 7.762 14.273zm2.566 1.367A16.945 16.945 0 0 0 34 55.286c3.28 0 6.343-.93 8.94-2.538L41 47c-2.868-.574-5.242-4.355-7.123-11.344-.816 9.87-2.759 15-5.83 15.392l-.72 2.878zm15.289-32.579a8.215 8.215 0 1 1 8.68 9.066A18.93 18.93 0 0 1 53 38.286c0 10.493-8.507 19-19 19s-19-8.507-19-19c0-10.494 8.507-19 19-19 3.102 0 6.03.743 8.617 2.061zm7.052 3.772v2.19h2.19v-2.19h-2.19zm-2.116-5.016h1.963c0-.267.027-.517.08-.749.054-.232.136-.435.247-.608a1.29 1.29 0 0 1 .428-.415c.173-.104.38-.156.62-.156.357 0 .635.109.835.326.2.218.301.554.301 1.009.009.267-.033.49-.127.667a1.959 1.959 0 0 1-.367.49 8.245 8.245 0 0 1-.494.444 3.532 3.532 0 0 0-.508.527c-.16.202-.3.447-.42.734s-.194.642-.221 1.068v.667h1.803v-.564a1.61 1.61 0 0 1 .26-.741 2.82 2.82 0 0 1 .475-.527c.178-.153.367-.306.567-.46.2-.152.383-.338.548-.555.165-.218.303-.48.414-.786.111-.307.167-.697.167-1.172a2.92 2.92 0 0 0-.167-.927 2.637 2.637 0 0 0-.554-.926 3.058 3.058 0 0 0-1.022-.72c-.423-.192-.95-.289-1.583-.289-.49 0-.933.092-1.329.275a2.956 2.956 0 0 0-1.015.763c-.28.326-.499.712-.654 1.157a4.653 4.653 0 0 0-.247 1.468z" opacity=".3"/><path fill="#FFF" d="M24.762 50.559V48c-3.65-2.952-4.016-8.81-1.095-17.571l9.767 1.485A79.883 79.883 0 0 1 33 30l10-3c3.333 10 3.667 15.667 1 17l1.4 4.898c3.439-3.111 5.6-7.61 5.6-12.612 0-9.39-7.611-17-17-17s-17 7.61-17 17c0 5.982 3.09 11.243 7.762 14.273zm2.566 1.367A16.945 16.945 0 0 0 34 53.286c3.28 0 6.343-.93 8.94-2.538L41 45c-2.868-.574-5.242-4.355-7.123-11.344-.816 9.87-2.759 15-5.83 15.392l-.72 2.878zm15.289-32.579a8.215 8.215 0 1 1 8.68 9.066A18.93 18.93 0 0 1 53 36.286c0 10.493-8.507 19-19 19s-19-8.507-19-19c0-10.494 8.507-19 19-19 3.102 0 6.03.743 8.617 2.061zm7.052 3.772v2.19h2.19v-2.19h-2.19zm-2.116-5.016h1.963c0-.267.027-.517.08-.749.054-.232.136-.435.247-.608a1.29 1.29 0 0 1 .428-.415c.173-.104.38-.156.62-.156.357 0 .635.109.835.326.2.218.301.554.301 1.009.009.267-.033.49-.127.667a1.959 1.959 0 0 1-.367.49 8.245 8.245 0 0 1-.494.444 3.532 3.532 0 0 0-.508.527c-.16.202-.3.447-.42.734s-.194.642-.221 1.068v.667h1.803v-.564a1.61 1.61 0 0 1 .26-.741 2.82 2.82 0 0 1 .475-.527c.178-.153.367-.306.567-.46.2-.152.383-.338.548-.555.165-.218.303-.48.414-.786.111-.307.167-.697.167-1.172a2.92 2.92 0 0 0-.167-.927 2.637 2.637 0 0 0-.554-.926 3.058 3.058 0 0 0-1.022-.72c-.423-.192-.95-.289-1.583-.289-.49 0-.933.092-1.329.275a2.956 2.956 0 0 0-1.015.763c-.28.326-.499.712-.654 1.157a4.653 4.653 0 0 0-.247 1.468z"/></g></g></svg>
\ No newline at end of file diff --git a/addons/website_event_questions/static/tests/tours/tickets_questions.js b/addons/website_event_questions/static/tests/tours/tickets_questions.js new file mode 100644 index 00000000..b46fc63a --- /dev/null +++ b/addons/website_event_questions/static/tests/tours/tickets_questions.js @@ -0,0 +1,59 @@ +odoo.define('website_event_questions.tour_test_tickets_questions', function (require) { +'use strict'; + +var tour = require('web_tour.tour'); +tour.register('test_tickets_questions', { + test: true, + url: '/event' +}, [{ + content: "Click on the Design Fair event", + trigger: 'article:contains("Design Fair New York")', +}, { + content: "Click on Buy tickets button", + trigger: 'a:contains("Tickets")', +}, { + content: "Select 2 'Free' tickets to buy", + trigger: 'div.row:contains("Free") select.custom-select', + run: 'text 2' +}, { + content: "Click on Register tickets button", + trigger: 'button:contains("Register")', + run: 'click' +}, { + trigger: 'div:contains("Ticket #1").modal-body input[name*="name"]', + run: 'text Attendee A' +}, { + trigger: 'div:contains("Ticket #1").modal-body input[name*="email"]', + run: 'text attendee-a@gmail.com' +}, { + trigger: 'div:contains("Ticket #1").modal-body input[name*="phone"]', + run: 'text +32499123456' +}, { + trigger: 'div:contains("Ticket #1").modal-body select[name*="question_answer"]', + run: 'text Vegetarian' +}, { + trigger: 'div:contains("Ticket #1").modal-body textarea[name*="question_answer"]', + run: 'text Fish and Nuts' +}, { + trigger: 'div:contains("Ticket #2").modal-body input[name*="name"]', + run: 'text Attendee B' +}, { + trigger: 'div:contains("Ticket #2").modal-body input[name*="email"]', + run: 'text attendee-b@gmail.com' +}, { + trigger: 'div:contains("Ticket #2").modal-body select[name*="question_answer"]', + run: 'text Pastafarian' +}, { + trigger: 'div.o_wevent_registration_question_global select[name*="question_answer"]', + run: 'text A friend' +}, { + trigger: 'button:contains("Continue")', + run: 'click' +}, { + // The tour stops too early and the registration fails if we don't wait the confirmation. + content: 'Wait for confirmation', + trigger: '.o_wereg_confirmed, .oe_cart', + auto: true +}]); + +}); |
