Debian Codegraph @

addons/website_sale_loyalty/static/tests/tours/website_sale_delivery_gift_card.js

raw symbols SCIP
1 import { registry } from "@web/core/registry";
2 import * as wsTourUtils from "@website_sale/js/tours/tour_utils";
3
4 registry.category("web_tour.tours").add('shop_sale_loyalty_delivery', {
5 url: '/shop',
6 steps: () => [
7 ...wsTourUtils.addToCart({ productName: "Plumbus", expectUnloadPage: true }),
8 wsTourUtils.goToCart(1),
9 wsTourUtils.goToCheckout(),
10 {
11 content: "select delivery method 1",
12 trigger: "li label:contains(delivery1)",
13 run: "click",
14 },
15 {
16 content: "Enter gift card code",
17 trigger: "form[name='coupon_code'] input[name='promo']",
18 run: "edit 123456",
19 },
20 {
21 content: "click on 'Apply'",
22 trigger: 'form[name="coupon_code"] button[type="submit"]',
23 run: "click",
24 expectUnloadPage: true,
25 },
26 wsTourUtils.confirmOrder(),
27 ...wsTourUtils.assertCartAmounts({
28 total: '0.00',
29 delivery: '5.00'
30 }),
31 ]
32 });