2014-01-20 18:26:43 +00:00
|
|
|
var testRunner = require('../../../website/tests/ui_suite/ui_test_runner.js');
|
|
|
|
|
|
|
|
var waitFor = testRunner.waitFor;
|
|
|
|
|
|
|
|
testRunner.run(function websiteSaleTest (page, timeout) {
|
|
|
|
page.evaluate(function () { localStorage.clear(); });
|
|
|
|
waitFor(function clientReady () {
|
|
|
|
return page.evaluate(function () {
|
|
|
|
return window.$ && window.openerp && window.openerp.website
|
|
|
|
&& window.openerp.website.TestConsole
|
2014-01-29 17:50:38 +00:00
|
|
|
&& window.openerp.website.TestConsole.test('shop_buy_product');
|
2014-01-20 18:26:43 +00:00
|
|
|
});
|
|
|
|
}, function executeTest () {
|
|
|
|
page.evaluate(function () {
|
2014-01-29 17:50:38 +00:00
|
|
|
window.openerp.website.TestConsole.test('shop_buy_product').run(true);
|
2014-01-20 18:26:43 +00:00
|
|
|
});
|
2014-01-23 08:14:11 +00:00
|
|
|
}, timeout);
|
2014-01-20 18:26:43 +00:00
|
|
|
});
|