Permalink
Browse files

fix website sale test

  • Loading branch information...
seb-odoo committed Nov 8, 2018
1 parent 2aa791e commit e70c85f5762aff39649f3146466ada5993ba070d
@@ -128,7 +128,7 @@
<template id="optional_product_items">
<t t-foreach="product.optional_product_ids" t-as="product">
<t t-set="first_possible_combination" t-value="product._get_first_possible_combination(reference_product)"/>
<t t-if="first_possible_combination">
<t t-if="first_possible_combination or not product.attribute_line_ids">
<tr class="js_product">
<td class="td-img">
<input type="hidden" class="product_template_id" t-att-value="product.id"/>
@@ -44,16 +44,16 @@ tour.register('shop_buy_product', {
},
{
content: "add suggested",
extra_trigger: '#wrap:not(:has(#cart_products:contains("[A8767] Storage Box")))',
trigger: '.oe_cart:has(tr:contains("Steel")) a:contains("Add to Cart")',
extra_trigger: '#wrap:not(:has(#cart_products:contains("Storage Box")))',
trigger: '.oe_cart:has(tr:contains("Storage Box")) a:contains("Add to Cart")',
},
{
content: "add one more",
extra_trigger: '#cart_products tr:contains("Storage Box")',
trigger: '#cart_products tr:contains("Steel") a.js_add_cart_json:eq(1)',
},
{
content: "remove Headphones",
content: "remove Storage Box",
extra_trigger: '#cart_products tr:contains("Steel") input.js_quantity:propValue(2)',
trigger: '#cart_products tr:contains("Storage Box") a.js_add_cart_json:first',
},

0 comments on commit e70c85f

Please sign in to comment.