Files
odoo_source/addons/website/static/tests/tours/carousel_content_removal.js
T
99b50d18e2 [REF] test_website, *: adapt tours to new client action
*: website, website_blog, website_crm, website_event, website_forum,
   website_hr_recruitment, website_mass_mailing, website_sale,
   website_sale_loyalty, website_slides

This commit adds the current website displayed view xmlid outside of the
iframe, on its container, so that the tours registered with
registerThemeHomepageTour can continue to prepend their triggers with
the view xml id.

Introduce registerEditionTour: this function will allow tour maker to
more easily register a tour that needs to start in the iframe's backend
and go in edit mode.

See merge commit for more information.

task-2687506

Co-authored-by: Benjamin Vray <bvr@odoo.com>
Co-authored-by: Younn Olivier <yol@odoo.com>
2022-06-24 10:28:07 +02:00

26 lines
811 B
JavaScript

/** @odoo-module */
import wTourUtils from 'website.tour_utils';
wTourUtils.registerEditionTour("carousel_content_removal", {
test: true,
url: '/',
edition: true,
}, [{
trigger: "#snippet_structure .oe_snippet:has(span:contains('Carousel')) .oe_snippet_thumbnail",
content: "Drag the Carousel block and drop it in your page.",
run: "drag_and_drop iframe #wrap",
},
{
trigger: "iframe .carousel .carousel-item.active .carousel-content",
content: "Select the active carousel item.",
}, {
trigger: ".oe_overlay.oe_active .oe_snippet_remove",
content: "Remove the active carousel item.",
},
{
trigger: "iframe .carousel .carousel-item.active .container:not(:has(*))",
content: "Check for a carousel slide with an empty container tag",
run: function () {},
}]);