[FIX] web_tests dont assume an act_window
authorAntony Lesuisse <al@openerp.com>
Tue, 1 Jul 2014 14:49:53 +0000 (16:49 +0200)
committerAntony Lesuisse <al@openerp.com>
Tue, 1 Jul 2014 14:49:53 +0000 (16:49 +0200)
if mail module is installed it could be a client action

addons/web_tests/tests/test_ui.py

index fd64434..f1577d1 100644 (file)
@@ -11,6 +11,6 @@ class TestUi(openerp.tests.HttpCase):
     def test_03_js_public(self):
         self.phantom_js('/',"console.log('ok')","console")
     def test_04_js_admin(self):
-        self.phantom_js('/web',"console.log('ok')","openerp.client.action_manager.inner_widget.views.form", login='admin')
+        self.phantom_js('/web',"console.log('ok')","openerp.client.action_manager.inner_widget", login='admin')
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: