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 () { }, } -]}); - + ] +});