summaryrefslogtreecommitdiff
path: root/addons/website_sale_comparison
diff options
context:
space:
mode:
authorAntoine Vandevenne (anv) <anv@odoo.com>2019-09-27 16:06:10 +0000
committerAntoine Vandevenne (anv) <anv@odoo.com>2019-09-30 11:56:24 +0000
commit06bd183ec2973213fe0b7d8db15ef40691fd1425 (patch)
treec6099287f585a6ea4bb5285b4f68727d16bdcf66 /addons/website_sale_comparison
parent3408c4dd1eb197bdded6e87577ff71d7ffeca267 (diff)
[IMP] product(_matrix), *: add configurator hint to template name
Before this commit, it wasn't easy to find a demo product template that opens either with the product configurator or with the matrix from a list view. To fix that, this commit appends '(CONFIG)' to the name of all demo product templates that open with the product configurator and '(GRID)' to all demo product templates that open with the matrix. task-2052537
Diffstat (limited to 'addons/website_sale_comparison')
-rw-r--r--addons/website_sale_comparison/static/tests/tours/website_sale_comparison.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/website_sale_comparison/static/tests/tours/website_sale_comparison.js b/addons/website_sale_comparison/static/tests/tours/website_sale_comparison.js
index 3fa94d52b29..9e31b218af7 100644
--- a/addons/website_sale_comparison/static/tests/tours/website_sale_comparison.js
+++ b/addons/website_sale_comparison/static/tests/tours/website_sale_comparison.js
@@ -62,7 +62,7 @@ odoo.define('website_sale_comparison.tour_comparison', function (require) {
{
content: "check the comparelist is now open and contains 3rd product with correct variant",
extra_trigger: '.comparator-popover',
- trigger: '.o_product_row:contains("Customizable Desk (Steel, White)")',
+ trigger: '.o_product_row:contains("Customizable Desk (CONFIG) (Steel, White)")',
run: function () {},
},
{
@@ -81,7 +81,7 @@ odoo.define('website_sale_comparison.tour_comparison', function (require) {
{
content: "comparelist contains 4th product with correct variant",
extra_trigger: '.o_product_circle:contains(4)',
- trigger: '.o_product_row:contains("Customizable Desk (Steel, Black)")',
+ trigger: '.o_product_row:contains("Customizable Desk (CONFIG) (Steel, Black)")',
run: function () {},
},
{
@@ -110,17 +110,17 @@ odoo.define('website_sale_comparison.tour_comparison', function (require) {
// test on compare page
{
content: "check 1st product contains correct variant",
- trigger: '.o_product_comparison_table:contains("Conference Chair (Steel)")',
+ trigger: '.o_product_comparison_table:contains("Conference Chair (CONFIG) (Steel)")',
run: function () {},
},
{
content: "check 2nd product contains correct variant",
- trigger: '.o_product_comparison_table:contains("Customizable Desk (Steel, White)")',
+ trigger: '.o_product_comparison_table:contains("Customizable Desk (CONFIG) (Steel, White)")',
run: function () {},
},
{
content: "check 3rd product is correctly added",
- trigger: '.o_product_comparison_table:contains("Customizable Desk (Steel, Black)")',
+ trigger: '.o_product_comparison_table:contains("Customizable Desk (CONFIG) (Steel, Black)")',
run: function () {},
},
{
@@ -129,12 +129,12 @@ odoo.define('website_sale_comparison.tour_comparison', function (require) {
run: function () {},
},
{
- content: "remove Customizable Desk (Steel, Black) from compare table",
+ content: "remove Customizable Desk (CONFIG) (Steel, Black) from compare table",
trigger: '#o_comparelist_table .o_comparelist_remove:eq(2)',
},
{
content: "check customizable table with black variant is removed",
- trigger: '#o_comparelist_table:not(:contains("Customizable Desk (Steel, Black)"))',
+ trigger: '#o_comparelist_table:not(:contains("Customizable Desk (CONFIG) (Steel, Black)"))',
run: function () {},
},
{