Browse Source

[IMP] ready condition for phantom

pull/6/head
Ilyas 9 years ago
parent
commit
ddcfbaf7bd
  1. 4
      mail_sent/tests/test_js.py

4
mail_sent/tests/test_js.py

@ -9,7 +9,7 @@ class TestUi(openerp.tests.HttpCase):
setTimeout(function () {
$(".mail_sent").click();
setTimeout(function () {console.log('ok');}, 3000);
}, 3000);
}, 1000);
"""
link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat')
self.phantom_js(link, code, "", login="demo")
self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_sent.sent']", login="demo")
Loading…
Cancel
Save