[FIX] website tour test
bzr revid: chm@openerp.com-20140130232330-kgrw8e7d0ez3f3pp
This commit is contained in:
parent
04e158151a
commit
5400c508e5
|
@ -429,7 +429,7 @@ website.Tour.waitReady = function (callback) {
|
|||
}
|
||||
});
|
||||
};
|
||||
website.Tour.runTest = function (id) {
|
||||
website.Tour.run_test = function (id) {
|
||||
website.Tour.get(id).trigger(true);
|
||||
};
|
||||
|
||||
|
|
|
@ -13,5 +13,5 @@ testRunner.run(function homepageTest (page, timeout) {
|
|||
page.evaluate(function () {
|
||||
window.openerp.website.Tour.run_test('banner');
|
||||
});
|
||||
}, timeout/5);
|
||||
}, timeout);
|
||||
});
|
||||
|
|
|
@ -13,5 +13,5 @@ testRunner.run(function blogTest (page, timeout) {
|
|||
page.evaluate(function () {
|
||||
window.openerp.website.Tour.run_test('blog');
|
||||
});
|
||||
}, timeout/5);
|
||||
}, timeout);
|
||||
});
|
|
@ -13,5 +13,5 @@ testRunner.run(function eventTest (page, timeout) {
|
|||
page.evaluate(function () {
|
||||
window.openerp.website.Tour.run_test('event');
|
||||
});
|
||||
}, timeout/5);
|
||||
}, timeout);
|
||||
});
|
||||
|
|
|
@ -2,7 +2,7 @@ import openerp.addons.website.tests.test_ui as test_ui
|
|||
|
||||
def load_tests(loader, base, _):
|
||||
base.addTest(test_ui.WebsiteUiSuite(test_ui.full_path(__file__,'website_sale-sale_process-test.js'),
|
||||
{ 'action': 'website.action_website_homepage' }, 120.0))
|
||||
{ 'action': 'website.action_website_homepage' }))
|
||||
base.addTest(test_ui.WebsiteUiSuite(test_ui.full_path(__file__,'website_sale-sale_process-test-2.js'),
|
||||
{ 'action': 'website.action_website_homepage' }, 120.0))
|
||||
{ 'action': 'website.action_website_homepage' }))
|
||||
return base
|
|
@ -13,5 +13,5 @@ testRunner.run(function websiteSaleTest (page, timeout) {
|
|||
page.evaluate(function () {
|
||||
window.openerp.website.Tour.run_test('shop');
|
||||
});
|
||||
}, timeout/5);
|
||||
}, timeout);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue