1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/website_sale/static/tests/tours/website_sale_buy.js
2024-12-10 09:04:09 +07:00

24 lines
703 B
JavaScript

/** @odoo-module **/
import { registry } from "@web/core/registry";
import tourUtils from "@website_sale/js/tours/tour_utils";
registry.category("web_tour.tours").add('shop_buy_product', {
test: true,
url: '/shop',
steps: () => [
...tourUtils.searchProduct("Storage Box"),
{
content: "select Storage Box",
trigger: '.oe_product_cart:first a:contains("Storage Box")',
},
{
content: "click on add to cart",
trigger: '#product_detail form[action^="/shop/cart/update"] #add_to_cart',
},
tourUtils.goToCart(),
tourUtils.goToCheckout(),
...tourUtils.payWithTransfer(true),
]
});