You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
656 B

  1. # -*- coding: utf-8 -*-
  2. import openerp.tests
  3. @openerp.tests.common.at_install(False)
  4. @openerp.tests.common.post_install(True)
  5. class TestUi(openerp.tests.HttpCase):
  6. def test_01_mail_archives(self):
  7. # wait till page loaded and then click and wait again
  8. code = """
  9. setTimeout(function () {
  10. $(".mail_archives").click();
  11. setTimeout(function () {console.log('ok');}, 3000);
  12. }, 1000);
  13. """
  14. link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat')
  15. self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_archives.archives']", login="admin")