[WIP] website_sale: test tour error
bzr revid: chm@openerp.com-20140121210506-s11tmbdczs34bkuu
This commit is contained in:
@@ -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" }');
|
||||
|
||||
Reference in New Issue
Block a user