From 11df0a1187faaf20c730797ca9a96e35d80834b8 Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Tue, 26 Sep 2023 09:26:22 +0200 Subject: [PATCH] [IMP] website_sale, *: adapt CTA style in product pages *: website_sale_loyalty, website_sale_product_configurator task-3097005 closes odoo/odoo#120302 Related: odoo/design-themes#687 Signed-off-by: Quentin Smetz (qsm) --- .../tours/website_sale_shop_custom_attribute_value.js | 2 +- .../static/tests/tours/website_sale_shop_customize.js | 2 +- .../static/tests/tours/website_sale_shop_list_view_b2c.js | 2 +- .../tests/tours/website_sale_shop_multi_checkbox.js | 2 +- .../tests/tours/website_sale_shop_no_variant_attribute.js | 2 +- addons/website_sale/views/templates.xml | 8 ++++---- .../static/tests/tours/test_promo_main_tour.js | 2 +- .../tours/website_sale_shop_custom_attributes_value.js | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_custom_attribute_value.js b/addons/website_sale/static/tests/tours/website_sale_shop_custom_attribute_value.js index ef95ca9a3a2..117e9b8ab23 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_custom_attribute_value.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_custom_attribute_value.js @@ -18,7 +18,7 @@ run: 'text Wood', }, { id: 'add_cart_step', - trigger: 'a:contains(ADD TO CART)', + trigger: 'a:contains(Add to cart)', run: 'click', }, tourUtils.goToCart(), diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_customize.js b/addons/website_sale/static/tests/tours/website_sale_shop_customize.js index 9d7c58d3db3..34196d0d677 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_customize.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_customize.js @@ -109,7 +109,7 @@ wTourUtils.registerWebsitePreviewTour('shop_customize', { }, { content: "click on 'Add to Cart' button", - trigger: "iframe a:contains(ADD TO CART)", + trigger: "iframe a:contains(Add to cart)", }, { content: "check quantity", diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_list_view_b2c.js b/addons/website_sale/static/tests/tours/website_sale_shop_list_view_b2c.js index 4e242531d31..00b84d2a091 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_list_view_b2c.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_list_view_b2c.js @@ -64,7 +64,7 @@ wTourUtils.registerWebsitePreviewTour('shop_list_view_b2c', { }, { content: "click on 'Add to Cart' button", - trigger: 'iframe a:contains(ADD TO CART)', + trigger: 'iframe a:contains(Add to cart)', }, tourUtils.goToCart({backend: true}), { diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_multi_checkbox.js b/addons/website_sale/static/tests/tours/website_sale_shop_multi_checkbox.js index 72de67579d1..a124324e2af 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_multi_checkbox.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_multi_checkbox.js @@ -49,7 +49,7 @@ registry.category("web_tour.tours").add('tour_shop_multi_checkbox', { }, { content: "add to cart", - trigger: 'a:contains(ADD TO CART)', + trigger: 'a:contains(Add to cart)', }, tourUtils.goToCart(), { diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_no_variant_attribute.js b/addons/website_sale/static/tests/tours/website_sale_shop_no_variant_attribute.js index 812567f4038..7e66b839e55 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_no_variant_attribute.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_no_variant_attribute.js @@ -19,7 +19,7 @@ registry.category("web_tour.tours").add('tour_shop_no_variant_attribute', { }, { content: "add to cart", - trigger: 'a:contains(ADD TO CART)', + trigger: 'a:contains(Add to cart)', }, tourUtils.goToCart(), { diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index d76e67717f8..96e55ffa4b7 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -1045,9 +1045,9 @@
@@ -1229,7 +1229,7 @@ -
+
@@ -1248,7 +1248,7 @@ - BUY NOW + Buy now diff --git a/addons/website_sale_loyalty/static/tests/tours/test_promo_main_tour.js b/addons/website_sale_loyalty/static/tests/tours/test_promo_main_tour.js index 7867c943f7c..a03e368b7d6 100644 --- a/addons/website_sale_loyalty/static/tests/tours/test_promo_main_tour.js +++ b/addons/website_sale_loyalty/static/tests/tours/test_promo_main_tour.js @@ -21,7 +21,7 @@ registry.category("web_tour.tours").add('shop_sale_loyalty', { }, { content: "click on 'Add to Cart' button", - trigger: "a:contains(ADD TO CART)", + trigger: "a:contains(Add to cart)", }, tourUtils.goToCart({quantity: 2}), { diff --git a/addons/website_sale_product_configurator/static/tests/tours/website_sale_shop_custom_attributes_value.js b/addons/website_sale_product_configurator/static/tests/tours/website_sale_shop_custom_attributes_value.js index 85e3c3d71d5..eb90d909bf6 100644 --- a/addons/website_sale_product_configurator/static/tests/tours/website_sale_shop_custom_attributes_value.js +++ b/addons/website_sale_product_configurator/static/tests/tours/website_sale_shop_custom_attributes_value.js @@ -17,7 +17,7 @@ registry.category("web_tour.tours").add("a_shop_custom_attribute_value", { run: function (){}, // check }, { id: 'add_cart_step', - trigger: 'a:contains(ADD TO CART)', + trigger: 'a:contains(Add to cart)', run: 'click', }, { trigger: '.oe_advanced_configurator_modal .js_product:eq(1) div:contains("Conference Chair (TEST) (Steel)")',