[FIX] website_sale: correct "buy product" tour to search the product before selecting it
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
path: '/shop',
|
||||
mode: 'test',
|
||||
steps: [
|
||||
{
|
||||
title: "search ipod",
|
||||
element: 'form:has(input[name="search"]) a.a-submit',
|
||||
onload: function() {
|
||||
$('input[name="search"]').val("ipod");
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "select ipod",
|
||||
element: '.oe_product_cart a:contains("iPod")',
|
||||
@@ -19,7 +26,7 @@
|
||||
{
|
||||
title: "click on add to cart",
|
||||
waitFor: 'label:contains(32 GB) input[checked]',
|
||||
element: 'form[action="/shop/cart/update"] .btn',
|
||||
element: 'form[action^="/shop/cart/update"] a.a-submit.btn',
|
||||
},
|
||||
{
|
||||
title: "add suggested",
|
||||
@@ -49,7 +56,7 @@
|
||||
},
|
||||
{
|
||||
title: "test with input error",
|
||||
element: 'form[action="/shop/confirm_order"] .btn:contains("Confirm")',
|
||||
element: 'form[action="/shop/confirm_order"] a.a-submit.btn:contains("Confirm")',
|
||||
onload: function (tour) {
|
||||
$("input[name='phone']").val("");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user