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.

16 lines
500 B

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