[FIX] website_(event_)sale: fix tours in enterprise
Recently, a few tours started failing in enterprise. The reason is that there is some code in the e-commerce which folds the navigation bar (with the page names), including the shopping cart counter. Some tours depended on the presence of that counter, and fails in enterprise, when more modules are installed and the folding code is more likely to actually run. In this commit, we do not fix the core issue (not hiding the cart counter), but we work around the issue by slightly changing the tours to make them pass. I believe that the website team will make that properly work soon.
This commit is contained in:
@@ -53,7 +53,7 @@ tour.register('event_buy_tickets', {
|
||||
},
|
||||
{
|
||||
content: "Check that the cart contains exactly 3 triggers",
|
||||
trigger: 'a:has(.my_cart_quantity:containsExact(3))',
|
||||
trigger: 'a:has(.my_cart_quantity:containsExact(3)),.o_extra_menu_items .fa-plus',
|
||||
run: function () {}, // it's a check
|
||||
},
|
||||
{
|
||||
@@ -67,7 +67,7 @@ tour.register('event_buy_tickets', {
|
||||
},
|
||||
{
|
||||
content: "Now click on `Process Checkout`",
|
||||
extra_trigger: 'a:has(.my_cart_quantity):contains(4)',
|
||||
extra_trigger: 'a:has(.my_cart_quantity):contains(4),#cart_products input.js_quantity[value="3"]',
|
||||
trigger: '.btn-primary:contains("Process Checkout")'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ tour.register('shop_buy_product', {
|
||||
},
|
||||
{
|
||||
content: "add one more iPod",
|
||||
extra_trigger: '.my_cart_quantity:contains(2)',
|
||||
extra_trigger: '#cart_products tr:contains("Headphones")',
|
||||
trigger: '#cart_products tr:contains("16 GB") a.js_add_cart_json:eq(1)',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ tour.register('shop_customize', {
|
||||
},
|
||||
{
|
||||
content: "check quantity",
|
||||
trigger: '.my_cart_quantity:containsExact(2)',
|
||||
trigger: '.my_cart_quantity:containsExact(2),.o_extra_menu_items .fa-plus',
|
||||
run: function () {}, // it's a check
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user