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.

17 lines
632 B

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