-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website_sale_suggest_create_account: migrate test to V17
- steps must be a function - no more require("web_tour.tour")
- Loading branch information
1 parent
690909c
commit 2d27772
Showing
3 changed files
with
48 additions
and
54 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
47 changes: 47 additions & 0 deletions
47
website_sale_suggest_create_account/static/tests/tours/checkout.esm.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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** @odoo-module */ | ||
|
||
import {registry} from "@web/core/registry"; | ||
registry.category("web_tour.tours").add("shop_buy_checkout_suggest_account_website", { | ||
test: true, | ||
url: "/shop", | ||
steps: () => [ | ||
// Shop Page | ||
{ | ||
trigger: "a:contains('Customizable')", | ||
}, | ||
{ | ||
trigger: "#add_to_cart", | ||
}, | ||
{ | ||
trigger: "button:contains('Proceed to Checkout')", | ||
}, | ||
// Cart page | ||
{ | ||
trigger: | ||
"a.btn-primary[href='/web/login?redirect=/shop/checkout?express=1']", | ||
}, | ||
// TODO: Add a step to check that "checkout" button doesn't exists | ||
// Odoo 13.0 initial config doesn't have b2c actived for the website | ||
// Login Page | ||
{ | ||
trigger: "#login", | ||
run: "text portal", | ||
}, | ||
{ | ||
trigger: "#password", | ||
run: "text portal", | ||
}, | ||
{ | ||
trigger: "button.btn-primary:first", | ||
}, | ||
// Checkout Page | ||
{ | ||
trigger: "button[name='o_payment_submit_button']", | ||
}, | ||
{ | ||
trigger: "span", | ||
content: "Order", | ||
}, | ||
// The End | ||
], | ||
}); |
53 changes: 0 additions & 53 deletions
53
website_sale_suggest_create_account/static/tests/tours/checkout.js
This file was deleted.
Oops, something went wrong.