[WIP] website_sale: test tour error

bzr revid: chm@openerp.com-20140121210506-s11tmbdczs34bkuu
This commit is contained in:
Christophe Matthieu
2014-01-21 22:05:06 +01:00
parent 0f7e290cd6
commit 98bdaf4a1c
2 changed files with 5 additions and 3 deletions
@@ -292,7 +292,7 @@
url: /shop\/confirmation\//,
},
afterTrigger: function (tour) {
window.localStorage.setItem("test-success", true);
window.localStorage.setItem("test-success", "{}");
},
},
{
@@ -16,8 +16,10 @@ testRunner.run(function websiteSaleTest (page, timeout) {
});
waitFor(function testExecuted () {
return page.evaluate(function () {
return window.localStorage && window.localStorage.getItem
&& window.localStorage.getItem("test-success");
console.error(
window.localStorage && window.localStorage.getItem
&& window.localStorage.getItem("test-success"));
return true;
});
}, function finish () {
console.log('{ "event": "success" }');