[FIX] website: test tour: use admin insead of tools.config['admin_passwd']
bzr revid: chm@openerp.com-20140207130104-nuwurzlsvt4cu1jr
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
{
|
||||
title: "insert login",
|
||||
element: '.oe_login_form input[name="login"]',
|
||||
sampleText: typeof user !== "undefined" ? user : "admin",
|
||||
sampleText: "admin",
|
||||
},
|
||||
{
|
||||
title: "insert password",
|
||||
waitFor: '.oe_login_form input[name="login"][value!=""]',
|
||||
element: '.oe_login_form input[name="password"]',
|
||||
sampleText: typeof password !== "undefined" ? password : "admin",
|
||||
sampleText: "admin",
|
||||
},
|
||||
{
|
||||
title: "select 2 Standard tickets",
|
||||
|
||||
@@ -88,7 +88,7 @@ class WebsiteUiSuite(unittest.TestSuite):
|
||||
self._options['db'] = tools.config.get('db_name', '')
|
||||
if 'user' not in self._options:
|
||||
self._options['user'] = 'admin'
|
||||
self._options['password'] = tools.config.get('admin_passwd', 'admin')
|
||||
self._options['password'] = 'admin'
|
||||
|
||||
phantom = subprocess.Popen([
|
||||
'phantomjs',
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
var testRunner = require('./ui_test_runner.js');
|
||||
|
||||
testRunner.run(
|
||||
function onload (page, timeout, options) {
|
||||
page.evaluate(function (user, password) {
|
||||
window.password = password;
|
||||
window.user = user;
|
||||
}, options.user, options.password);
|
||||
},
|
||||
[ "./../../../website/static/src/js/website.tour.test.js",
|
||||
testRunner.run_test('login_edit', {
|
||||
"inject": [
|
||||
"./../../../website/static/src/js/website.tour.test.js",
|
||||
"./../../../website/static/src/js/website.tour.test.admin.js"]
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user