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.

21 lines
810 B

  1. # Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
  2. # Copyright 2016 manawi <https://it-projects.info/team/manawi>
  3. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
  4. import odoo.tests
  5. @odoo.tests.common.at_install(False)
  6. @odoo.tests.common.post_install(True)
  7. class TestUi(odoo.tests.HttpCase):
  8. def test_01_mail_all(self):
  9. # wait till page loaded and then click and wait again
  10. code = """
  11. setTimeout(function () {
  12. $(".mail_all").click();
  13. setTimeout(function () {console.log('ok');}, 3000);
  14. }, 1000);
  15. """
  16. link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat')
  17. self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_all.all']", login="admin")