[FIX] website_sale_options: tour and filter by attributes
This commit is contained in:
parent
32b68d15a4
commit
78f87dce34
|
@ -334,6 +334,7 @@ var Tour = {
|
|||
+ '\n\n' + $("body").html();
|
||||
Tour.reset();
|
||||
if (state.mode === "test") {
|
||||
console.log(message);
|
||||
throw new Error(message);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -56,7 +56,7 @@ $('.oe_website_sale').each(function () {
|
|||
$('.a-submit', oe_website_sale).off('click').on('click', function () {
|
||||
$(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();
|
||||
});
|
||||
|
||||
|
|
|
@ -27,13 +27,13 @@
|
|||
element: "#customize-menu a:contains(Product Attribute's Filters)",
|
||||
},
|
||||
{
|
||||
title: "select product attribute memory 16 Go",
|
||||
waitNot: '#customize-menu:visible',
|
||||
element: 'form.js_attributes label:contains(16 Go) input:not(:checked)',
|
||||
title: "select product attribute memory 16 GB",
|
||||
waitNot: '#customize-menu:visible .dropdown-menu:visible',
|
||||
element: 'form.js_attributes label:contains(16 GB) input:not(:checked)',
|
||||
},
|
||||
{
|
||||
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",
|
||||
|
@ -42,7 +42,6 @@
|
|||
},
|
||||
{
|
||||
title: "click on 'Add to Cart' button",
|
||||
waitNot: '#customize-menu:visible',
|
||||
element: "a:contains(Add to Cart)",
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue