diff --git a/mail_sent/static/src/xml/menu.xml b/mail_sent/static/src/xml/menu.xml index de92e3a..b3fb11b 100644 --- a/mail_sent/static/src/xml/menu.xml +++ b/mail_sent/static/src/xml/menu.xml @@ -4,7 +4,7 @@
- Sent + Sent
diff --git a/mail_sent/tests/__init__.py b/mail_sent/tests/__init__.py new file mode 100644 index 0000000..6731bb9 --- /dev/null +++ b/mail_sent/tests/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +import test_js \ No newline at end of file diff --git a/mail_sent/tests/test_js.py b/mail_sent/tests/test_js.py new file mode 100644 index 0000000..25c074f --- /dev/null +++ b/mail_sent/tests/test_js.py @@ -0,0 +1,15 @@ +import openerp.tests + +@openerp.tests.common.at_install(False) +@openerp.tests.common.post_install(True) +class TestUi(openerp.tests.HttpCase): + def test_01_mail_sent(self): + # wait till page loaded and then click and wait again + code = """ + setTimeout(function () { + $(".mail_sent").click(); + setTimeout(function () {console.log('ok');}, 3000); + }, 3000); + """ + link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat') + self.phantom_js(link, code, "", login="demo")