mirror of
https://github.com/bringout/oca-ocb-vertical-industry.git
synced 2026-04-23 20:52:01 +02:00
19.0 vanilla
This commit is contained in:
parent
4607ccbd2e
commit
825ff6514e
487 changed files with 184979 additions and 195262 deletions
|
|
@ -1,53 +1,53 @@
|
|||
/** @odoo-module **/
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_utils";
|
||||
|
||||
import { _t } from 'web.core';
|
||||
import tour from 'web_tour.tour';
|
||||
|
||||
tour.register('order_lunch_tour', {
|
||||
url: "/web",
|
||||
test: true,
|
||||
}, [
|
||||
tour.stepUtils.showAppsMenuItem(),
|
||||
registry.category("web_tour.tours").add('order_lunch_tour', {
|
||||
url: "/odoo",
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
{
|
||||
trigger: '.o_app[data-menu-xmlid="lunch.menu_lunch"]',
|
||||
content: _t("Start by accessing the lunch app."),
|
||||
position: 'bottom',
|
||||
tooltipPosition: 'bottom',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content:"click on location",
|
||||
trigger: ".lunch_location .o_input_dropdown input",
|
||||
run: 'click',
|
||||
run: 'click'
|
||||
},
|
||||
{
|
||||
content: "Pick 'Farm 1' option",
|
||||
trigger: '.o_input_dropdown li:contains(Farm 1)',
|
||||
trigger: '.dropdown-item:contains("Farm 1")',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: '.lunch_location input:propValueContains(Farm 1)',
|
||||
run: () => {}, // wait for article to be correctly loaded
|
||||
trigger: '.lunch_location input:value("Farm 1")',
|
||||
},
|
||||
{
|
||||
trigger: "div[role='article']",
|
||||
trigger: ".o_kanban_record",
|
||||
content: _t("Click on a product you want to order and is available."),
|
||||
run: 'click'
|
||||
},
|
||||
{
|
||||
trigger: 'textarea[id="note"]',
|
||||
trigger: 'textarea[id="note_0"]',
|
||||
content: _t("Add additionnal information about your order."),
|
||||
position: 'bottom',
|
||||
run: 'text allergy to peanuts',
|
||||
tooltipPosition: 'bottom',
|
||||
run: "edit allergy to peanuts",
|
||||
},
|
||||
{
|
||||
trigger: 'button[name="add_to_cart"]',
|
||||
content: _t("Add your order to the cart."),
|
||||
position: 'bottom',
|
||||
}, {
|
||||
tooltipPosition: 'bottom',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: 'button:contains("Order Now")',
|
||||
content: _t("Validate your order"),
|
||||
position: 'left',
|
||||
tooltipPosition: 'left',
|
||||
run: 'click',
|
||||
}, {
|
||||
trigger: '.o_lunch_widget_lines .badge:contains("Ordered")',
|
||||
trigger: ".o_lunch_widget_line li[name='o_lunch_order_line'] .badge:contains('Ordered')",
|
||||
content: 'Check that order is ordered',
|
||||
run: () => {}
|
||||
}]);
|
||||
}]});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue