[FIX] website test tour

bzr revid: chm@openerp.com-20140408124119-jkmeh5vfdb3sjlna
This commit is contained in:
chm@openerp.com 2014-04-08 14:41:19 +02:00
parent be5fe933ec
commit f4225eda24
2 changed files with 12 additions and 11 deletions

View File

@ -351,18 +351,19 @@ var T = website.Tour = {
},
testRunning: 0,
running: function () {
setTimeout(function () {
if ($.ajaxBusy) {
$(document).ajaxStop(function() {
var state = T.getState();
T.registerSteps(state.tour);
T.nextStep();
});
} else {
var state = T.getState();
function run () {
var state = T.getState();
if (state) {
T.registerSteps(state.tour);
T.nextStep();
}
}
setTimeout(function () {
if ($.ajaxBusy) {
$(document).ajaxStop(run);
} else {
run();
}
},0);
},
check: function (step) {

View File

@ -57,11 +57,11 @@
},
{
title: "select payment",
element: '#payment_method label:has(img[title="transfer"]) input',
element: '#payment_method label:has(img[title="Wire Transfer"]) input',
},
{
title: "Pay Now",
waitFor: '#payment_method label:has(input:checked):has(img[title="transfer"])',
waitFor: '#payment_method label:has(input:checked):has(img[title="Wire Transfer"])',
element: '.oe_sale_acquirer_button .btn[name="submit"]:visible',
},
{