[FIX] website_sale: test tour
bzr revid: chm@openerp.com-20140122145821-da1l5l5bji39j5mv
This commit is contained in:
parent
0c5b6caa10
commit
0fe979572b
|
@ -292,7 +292,7 @@
|
|||
url: /shop\/confirmation\//,
|
||||
},
|
||||
afterTrigger: function (tour) {
|
||||
window.localStorage.setItem("shoptest-test-success", "true");
|
||||
console.log('{ "event": "success" }');
|
||||
},
|
||||
}
|
||||
];
|
||||
|
|
|
@ -14,15 +14,5 @@ testRunner.run(function websiteSaleTest (page, timeout) {
|
|||
page.evaluate(function () {
|
||||
window.openerp.website.TestConsole.test('shoptest').run(true);
|
||||
});
|
||||
waitFor(function testExecuted () {
|
||||
return page.evaluate(function () {
|
||||
var res = window.localStorage && window.localStorage.getItem
|
||||
&& window.localStorage.getItem("shoptest-test-success");
|
||||
return res;
|
||||
});
|
||||
}, function finish () {
|
||||
console.log('{ "event": "success" }');
|
||||
phantom.exit();
|
||||
}, 4*timeout/5);
|
||||
}, timeout/5);
|
||||
});
|
Loading…
Reference in New Issue