Debian Codegraph @

addons/website_sale/static/tests/tours/website_sale_product_publish.js

raw symbols SCIP
1 /** @odoo-module **/
2
3 import { registerWebsitePreviewTour } from '@website/js/tours/tour_utils';
4
5 registerWebsitePreviewTour(
6 'product_unpublished_without_category',
7 {
8 url: '/',
9 },
10 () => [
11 {
12 trigger:'body:not(:has(.o_new_content_menu_choices)) .o_new_content_container > button',
13 run: 'click',
14 },
15 {
16 trigger: 'button[data-module-xml-id="base.module_website_sale"]',
17 run: 'click',
18 },
19 {
20 trigger: '.modal-dialog .o_field_widget[name="name"] input',
21 run: 'edit Product Without Category',
22 },
23 {
24 trigger: '.modal-footer button.btn-primary',
25 run: 'click',
26 },
27 {
28 trigger: 'body:not(:has(.modal))',
29 },
30 {
31 trigger: ':iframe body:has(h1:contains("Product Without Category"))',
32 },
33 ]
34 );
35
36 registerWebsitePreviewTour(
37 'product_published_with_category',
38 {
39 url: '/',
40 },
41 () => [
42 {
43 trigger:'body:not(:has(.o_new_content_menu_choices)) .o_new_content_container > button',
44 run: 'click',
45 },
46 {
47 trigger: 'button[data-module-xml-id="base.module_website_sale"]',
48 run: 'click',
49 },
50 {
51 trigger: '.modal-dialog .o_field_widget[name="name"] input',
52 run: 'edit Product With Category',
53 },
54 {
55 trigger: '.modal-dialog .o_field_widget[name="public_categ_ids"] input',
56 run: 'edit Test',
57 },
58 {
59 trigger: '.ui-autocomplete a:contains("Test Category")',
60 run: 'click',
61 },
62 {
63 trigger: '.modal-footer button.btn-primary',
64 run: 'click',
65 },
66 {
67 trigger: 'body:not(:has(.modal))',
68 },
69 {
70 trigger: ':iframe body:has(h1:contains("Product With Category"))',
71 },
72 ]
73 );