-
-
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.
Signed-off-by pedrobaeza
- Loading branch information
Showing
5 changed files
with
101 additions
and
6 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
49 changes: 49 additions & 0 deletions
49
website_sale_product_assortment/static/src/js/no_restriction_no_show_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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* Copyright 2021 Tecnativa - Carlos Roca | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ | ||
odoo.define( | ||
"website_sale_product_assortment.no_restriction_no_show_tour", | ||
function (require) { | ||
"use strict"; | ||
|
||
var tour = require("web_tour.tour"); | ||
|
||
var steps = [ | ||
{ | ||
trigger: "a:contains('Test Product 1')", | ||
}, | ||
{ | ||
trigger: "a#add_to_cart", | ||
}, | ||
{ | ||
trigger: "a[href='/shop/cart']", | ||
extra_trigger: "sup.my_cart_quantity:contains('1')", | ||
}, | ||
{ | ||
content: "go back to the store", | ||
trigger: "a[href='/shop']", | ||
}, | ||
{ | ||
trigger: "a:contains('Test Product 2')", | ||
}, | ||
{ | ||
trigger: "a#add_to_cart", | ||
}, | ||
{ | ||
trigger: "a[href='/shop/cart']", | ||
extra_trigger: "sup.my_cart_quantity:contains('1')", | ||
}, | ||
]; | ||
|
||
tour.register( | ||
"test_assortment_with_no_restriction_no_show", | ||
{ | ||
url: "/shop", | ||
test: true, | ||
}, | ||
steps | ||
); | ||
return { | ||
steps: steps, | ||
}; | ||
} | ||
); |
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