From eeee7dc9e7f814cdfeea026ed90c4d473d68c54e Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Wed, 26 Jul 2023 09:18:10 +0000 Subject: [PATCH] [FIX] website_sale_stock_product_configurator : fix filename In this commit 721efd0fd7e7a1fd78a812a4b752f126b455cbdb there is a typo in a filename opw-3341377 closes odoo/odoo#129964 X-original-commit: c4798a1e8e8aa1838a908d79d3bfacdfc6480520 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Mahdi Cheikh Rouhou (macr) --- ..._message_after_close_configurator_modal.js | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/addons/website_sale_stock/static/tests/tours/website_sale_stock_message_after_close_configurator_modal.js b/addons/website_sale_stock/static/tests/tours/website_sale_stock_message_after_close_configurator_modal.js index 3742fafac2f..4b7e57d89c9 100644 --- a/addons/website_sale_stock/static/tests/tours/website_sale_stock_message_after_close_configurator_modal.js +++ b/addons/website_sale_stock/static/tests/tours/website_sale_stock_message_after_close_configurator_modal.js @@ -9,24 +9,25 @@ registry.category("web_tour.tours").add('website_sale_stock_message_after_close_ steps: () => [{ content: "Select Customizable Desk", trigger: '.oe_product_cart a:contains("Product With Optional (TEST)")', - },{ - content : "Check that the stock quantity is displayed and correct", - trigger : '#threshold_message:contains("30")', - run: function (){}, - },{ - content : "Add to cart", + }, { + content: "Check that the stock quantity is displayed and correct", + trigger: '#threshold_message:contains("30")', + run: function () { }, + }, { + content: "Add to cart", trigger: '#add_to_cart', - },{ + }, { content: "Continue shoppping", extra_trigger: '.oe_advanced_configurator_modal', trigger: 'button span:contains(Continue Shopping)', run: 'click' - },{ - content : "Check that the stock quantity is displayed and correct after adding to cart", - trigger : '#threshold_message:contains("29")', - run: function (){}, + }, { + content: "Check that the stock quantity is displayed and correct after adding to cart", + trigger: '#threshold_message:contains("29")', + run: function () { }, } -]}); + ] +}); registry.category("web_tour.tours").add('website_sale_stock_message_after_close_onfigurator_modal_without_optional_products', { // This tour relies on a data created from the python test. @@ -35,17 +36,17 @@ registry.category("web_tour.tours").add('website_sale_stock_message_after_close_ steps: () => [{ content: "Select Office Lamp", trigger: '.oe_product_cart a:contains("Product Without Optional (TEST)")', - },{ - content : "Check that the stock quantity is displayed and correct", - trigger : '#threshold_message:contains("30")', - run: function (){}, - },{ - content : "Add to cart", + }, { + content: "Check that the stock quantity is displayed and correct", + trigger: '#threshold_message:contains("30")', + run: function () { }, + }, { + content: "Add to cart", trigger: '#add_to_cart', - },{ - content : "Check that the stock quantity is displayed and correct after adding to cart", - trigger : '#threshold_message:contains("29")', - run: function (){}, + }, { + content: "Check that the stock quantity is displayed and correct after adding to cart", + trigger: '#threshold_message:contains("29")', + run: function () { }, } -]}); - + ] +});