Debian Codegraph @

addons/website_event_booth_sale/static/tests/tours/website_event_booth.js

raw symbols SCIP
1 import { registry } from "@web/core/registry";
2 import * as wsTourUtils from '@website_sale/js/tours/tour_utils';
3
4
5 registry.category("web_tour.tours").add('website_event_booth_tour', {
6 url: '/event',
7 steps: () => [
8 {
9 content: 'Open "Test Event Booths" event',
10 trigger: 'h5.card-title span:contains("Test Event Booths")',
11 run: "click",
12 expectUnloadPage: true,
13 }, {
14 content: 'Go to "Booth" page',
15 trigger: 'a:contains("Become exhibitor")',
16 run: "click",
17 expectUnloadPage: true,
18 }, {
19 content: 'Select the first two booths',
20 trigger: ".o_wbooth_booths input[name=event_booth_ids]:not(:visible)",
21 run() {
22 document.querySelectorAll('.o_wbooth_booths input[name="event_booth_ids"]')[0].click();
23 document.querySelectorAll('.o_wbooth_booths input[name="event_booth_ids"]')[1].click();
24 },
25 }, {
26 content: 'Confirm the booths by clicking the submit button',
27 trigger: 'button.o_wbooth_registration_submit',
28 run: "click",
29 expectUnloadPage: true,
30 }, {
31 content: 'Fill in your contact information',
32 trigger: 'input[name="contact_name"]',
33 run() {
34 this.anchor.value = 'John Doe';
35 document.querySelector('input[name="contact_email"]').value = '[email protected]';
36 },
37 }, {
38 content: 'Submit your informations',
39 trigger: 'button[type="submit"]',
40 run: "click",
41 expectUnloadPage: true,
42 },
43 ...wsTourUtils.assertCartAmounts({
44 taxes: '20.00',
45 untaxed: '200.00',
46 total: '220.00',
47 }),
48 wsTourUtils.goToCheckout(),
49 ...wsTourUtils.assertCartAmounts({
50 taxes: '20.00',
51 untaxed: '200.00',
52 total: '220.00',
53 }),
54 ]});