[FIX] website_sale: shop_buy_product: use properties selector
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
},
|
||||
{
|
||||
title: "click on add to cart",
|
||||
waitFor: 'label:contains(32 GB) input[checked]',
|
||||
element: 'form[action^="/shop/cart/update"] .btn',
|
||||
waitFor: 'label:contains(32 GB) input:propChecked',
|
||||
element: '#product_detail form[action^="/shop/cart/update"] .btn',
|
||||
},
|
||||
{
|
||||
title: "add suggested",
|
||||
@@ -40,7 +40,7 @@
|
||||
},
|
||||
{
|
||||
title: "remove Headphones",
|
||||
waitFor: '#cart_products tr:contains("32 GB") input.js_quantity[value=2]',
|
||||
waitFor: '#cart_products tr:contains("32 GB") input.js_quantity:propValue(2)',
|
||||
element: '#cart_products tr:contains("Apple In-Ear Headphones") a.js_add_cart_json:first',
|
||||
},
|
||||
{
|
||||
@@ -51,7 +51,7 @@
|
||||
},
|
||||
{
|
||||
title: "go to checkout",
|
||||
waitFor: '#cart_products input.js_quantity[value=1]',
|
||||
waitFor: '#cart_products input.js_quantity:propValue(1)',
|
||||
element: 'a[href="/shop/checkout"]',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user