[FIX] website_sale: test tour: button in checkout must contains 'Confirm' because for running with public user

bzr revid: chm@openerp.com-20140307142825-lrhnzl32u4ex7l0s
This commit is contained in:
chm@openerp.com 2014-03-07 15:28:25 +01:00
parent dfc428a6a1
commit 69237e1c8e
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@
{
title: "Complete checkout",
waitFor: '#top_menu .my_cart_quantity:contains(5)',
element: 'form[action="/shop/confirm_order/"] .btn',
element: 'form[action="/shop/confirm_order/"] .btn:contains("Confirm")',
onload: function (tour) {
if ($("input[name='name']").val() === "")
$("input[name='name']").val("website_sale-test-shoptest");

View File

@ -51,7 +51,7 @@
},
{
title: "test with input error",
element: 'form[action="/shop/confirm_order/"] .btn',
element: 'form[action="/shop/confirm_order/"] .btn:contains("Confirm")',
onload: function (tour) {
$("input[name='phone']").val("");
},
@ -59,7 +59,7 @@
{
title: "test without input error",
waitFor: 'form[action="/shop/confirm_order/"] .has-error',
element: 'form[action="/shop/confirm_order/"] .btn',
element: 'form[action="/shop/confirm_order/"] .btn:contains("Confirm")',
onload: function (tour) {
if ($("input[name='name']").val() === "")
$("input[name='name']").val("website_sale-test-shoptest");