[WIP] website_sale: test tour error
bzr revid: chm@openerp.com-20140121221438-6j1231868ex479p2
This commit is contained in:
parent
98bdaf4a1c
commit
d9582aa9e4
|
@ -292,13 +292,11 @@
|
||||||
url: /shop\/confirmation\//,
|
url: /shop\/confirmation\//,
|
||||||
},
|
},
|
||||||
afterTrigger: function (tour) {
|
afterTrigger: function (tour) {
|
||||||
window.localStorage.setItem("test-success", "{}");
|
localStorage.setItem("test-success", "{}");
|
||||||
|
throw "afterTrigger test finish, remove this throw";
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
{
|
|
||||||
stepId: 'end-test',
|
|
||||||
backdrop: true,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
return this._super();
|
return this._super();
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,10 +16,10 @@ testRunner.run(function websiteSaleTest (page, timeout) {
|
||||||
});
|
});
|
||||||
waitFor(function testExecuted () {
|
waitFor(function testExecuted () {
|
||||||
return page.evaluate(function () {
|
return page.evaluate(function () {
|
||||||
console.error(
|
var res = window.localStorage && window.localStorage.getItem
|
||||||
window.localStorage && window.localStorage.getItem
|
&& window.localStorage.getItem("test-success");
|
||||||
&& window.localStorage.getItem("test-success"));
|
console.log('{ "error": "testExecuted", "message": "'+res+'"" }');
|
||||||
return true;
|
return res;
|
||||||
});
|
});
|
||||||
}, function finish () {
|
}, function finish () {
|
||||||
console.log('{ "event": "success" }');
|
console.log('{ "event": "success" }');
|
||||||
|
|
Loading…
Reference in New Issue