| 1 | import { registry } from "@web/core/registry"; |
| 2 | |
| 3 | registry.category("web_tour.tours").add('website_sale_fiscal_position_portal_tour', { |
| 4 | url: '/shop?search=Super%20Product', |
| 5 | steps: () => [ |
| 6 | { |
| 7 | content: "Check price", |
| 8 | trigger: ".oe_product:contains('Super product') .product_price:contains('80.00')", |
| 9 | }, |
| 10 | ]}); |
| 11 | |
| 12 | registry.category("web_tour.tours").add('website_sale_fiscal_position_public_tour', { |
| 13 | url: '/shop?search=Super%20Product', |
| 14 | steps: () => [ |
| 15 | { |
| 16 | content: "Toggle Pricelist", |
| 17 | trigger: ".o_pricelist_dropdown > .dropdown-toggle", |
| 18 | run: 'click', |
| 19 | }, |
| 20 | { |
| 21 | content: "Change Pricelist", |
| 22 | trigger: ".dropdown-item:contains('EUROPE EUR')", |
| 23 | run: 'click', |
| 24 | expectUnloadPage: true, |
| 25 | }, |
| 26 | { |
| 27 | content: "Check price", |
| 28 | trigger: ".oe_product:contains('Super product') .product_price:contains('92.00')", |
| 29 | }, |
| 30 | ]}); |