/** @odoo-module **/ import { registry } from "@web/core/registry"; import { redirect } from "@web/core/utils/urls"; // This tour relies on data created on the Python test. registry.category("web_tour.tours").add('sale_signature', { url: '/my/quotes', steps: () => [ { content: "open the test SO", trigger: 'a:contains(/^test SO$/)', run: "click", }, { content: "click sign", trigger: 'a:contains("Sign")', run: "click", }, { content: "check submit is enabled", trigger: '.o_portal_sign_submit:enabled', }, { content: "click select style", trigger: '.o_web_sign_auto_select_style button', run: "click", }, { content: "click style 4", trigger: ".o-dropdown-item:eq(3)", run: "click", }, { content: "click submit", trigger: '.o_portal_sign_submit:enabled', run: "click", }, { content: "check it's confirmed", trigger: '#quote_content:contains("Thank You")', run: "click", }, { trigger: '#quote_content', run: function () { redirect("/odoo"); }, // Avoid race condition at the end of the tour by returning to the home page. }, { trigger: 'nav', } ]});