[FIX] website_sale_options: tour and filter by attributes

This commit is contained in:
Christophe Matthieu 2014-07-02 13:00:13 +02:00
parent 32b68d15a4
commit 78f87dce34
3 changed files with 6 additions and 6 deletions

View File

@ -334,6 +334,7 @@ var Tour = {
+ '\n\n' + $("body").html(); + '\n\n' + $("body").html();
Tour.reset(); Tour.reset();
if (state.mode === "test") { if (state.mode === "test") {
console.log(message);
throw new Error(message); throw new Error(message);
} }
}, },

View File

@ -56,7 +56,7 @@ $('.oe_website_sale').each(function () {
$('.a-submit', oe_website_sale).off('click').on('click', function () { $('.a-submit', oe_website_sale).off('click').on('click', function () {
$(this).closest('form').submit(); $(this).closest('form').submit();
}); });
$('.form.js_attributes input, form.js_attributes select', oe_website_sale).on('change', function () { $('form.js_attributes input, form.js_attributes select', oe_website_sale).on('change', function () {
$(this).closest("form").submit(); $(this).closest("form").submit();
}); });

View File

@ -27,13 +27,13 @@
element: "#customize-menu a:contains(Product Attribute's Filters)", element: "#customize-menu a:contains(Product Attribute's Filters)",
}, },
{ {
title: "select product attribute memory 16 Go", title: "select product attribute memory 16 GB",
waitNot: '#customize-menu:visible', waitNot: '#customize-menu:visible .dropdown-menu:visible',
element: 'form.js_attributes label:contains(16 Go) input:not(:checked)', element: 'form.js_attributes label:contains(16 GB) input:not(:checked)',
}, },
{ {
title: "check the selection", title: "check the selection",
waitFor: 'form.js_attributes label:contains(16 Go) input:checked', waitFor: 'form.js_attributes label:contains(16 GB) input:checked',
}, },
{ {
title: "select iPad", title: "select iPad",
@ -42,7 +42,6 @@
}, },
{ {
title: "click on 'Add to Cart' button", title: "click on 'Add to Cart' button",
waitNot: '#customize-menu:visible',
element: "a:contains(Add to Cart)", element: "a:contains(Add to Cart)",
}, },
{ {