|
|
@ -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_archives(self): |
|
|
|
# wait till page loaded and then click and wait again |
|
|
|
code = """ |
|
|
|
setTimeout(function () { |
|
|
|
$(".mail_archives").click(); |
|
|
|
setTimeout(function () {console.log('ok');}, 3000); |
|
|
|
}, 1000); |
|
|
|
""" |
|
|
|
link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat') |
|
|
|
self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_archives.archives']", login="demo") |