-
-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website_sale_checkout_skip_payment: Migration to 17.0
- Loading branch information
1 parent
f9bc8ff
commit 1560075
Showing
8 changed files
with
79 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
This module allows to logged users to checkout with no payment step. At | ||
the end of the checkout proccess the quotation is sent to the user email | ||
address and set to *Qoutation Sent* state. | ||
the end of the checkout process the quotation is sent to the user email | ||
address and set to *Quotation Sent* state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 32 additions & 42 deletions
74
..._sale_checkout_skip_payment/static/tests/tours/website_sale_checkout_skip_payment_tour.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,37 @@ | ||
odoo.define("website_sale_checkout_skip_payment.tour", function (require) { | ||
"use strict"; | ||
|
||
var tour = require("web_tour.tour"); | ||
const tourUtils = require("website_sale.tour_utils"); | ||
import {registry} from "@web/core/registry"; | ||
import tourUtils from "@website_sale/js/tours/tour_utils"; | ||
|
||
tour.register( | ||
"website_sale_checkout_skip_payment", | ||
registry.category("web_tour.tours").add("website_sale_checkout_skip_payment", { | ||
test: true, | ||
url: "/shop", | ||
steps: () => [ | ||
...tourUtils.searchProduct("Storage Box"), | ||
{ | ||
test: true, | ||
url: "/shop?search=Storage%20Box", | ||
content: "select Storage Box", | ||
trigger: '.oe_product_cart:first a:contains("Storage Box")', | ||
}, | ||
[ | ||
{ | ||
content: "select Storage Box", | ||
extra_trigger: ".oe_search_found", | ||
trigger: '.oe_product_cart a:contains("Storage Box")', | ||
}, | ||
{ | ||
content: "Add Storage Box into cart", | ||
trigger: "a:contains(ADD TO CART)", | ||
}, | ||
tourUtils.goToCart(), | ||
{ | ||
content: "go to checkout", | ||
extra_trigger: "#cart_products input.js_quantity:propValue(1)", | ||
trigger: 'a[href*="/shop/checkout"]', | ||
}, | ||
{ | ||
trigger: '.btn-primary:contains("Confirm")', | ||
}, | ||
{ | ||
trigger: ".btn:contains('Confirm')", | ||
extra_trigger: "b:contains('Billing & Shipping:')", | ||
}, | ||
{ | ||
trigger: "a[href='/shop']", | ||
extra_trigger: "strong:contains('Payment Information:')", | ||
}, | ||
{ | ||
content: "Check confirmation and that the cart has been left empty", | ||
trigger: "a:has(.my_cart_quantity:containsExact(0))", | ||
extra_trigger: "strong:contains('Payment Information:')", | ||
}, | ||
] | ||
); | ||
{ | ||
content: "click on add to cart", | ||
trigger: '#product_detail form[action^="/shop/cart/update"] #add_to_cart', | ||
}, | ||
tourUtils.goToCart(), | ||
tourUtils.goToCheckout(), | ||
{ | ||
trigger: '.btn-primary:contains("Confirm")', | ||
}, | ||
{ | ||
trigger: ".btn:contains('Confirm')", | ||
extra_trigger: "b:contains('Billing')", | ||
}, | ||
{ | ||
trigger: "a[href='/shop']", | ||
extra_trigger: "h4:contains('Payment Information')", | ||
}, | ||
{ | ||
content: "Check confirmation and that the cart has been left empty", | ||
trigger: "a:has(.my_cart_quantity:containsExact(0))", | ||
extra_trigger: "h4:contains('Payment Information')", | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters