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.

27 lines
1.1 KiB

  1. # Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
  2. # Copyright 2016 manawi <https://it-projects.info/team/manawi>
  3. # Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
  4. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
  5. import odoo.tests
  6. @odoo.tests.common.at_install(True)
  7. @odoo.tests.common.post_install(True)
  8. class TestUi(odoo.tests.HttpCase):
  9. def test_01_mail_all(self):
  10. # needed because tests are run before the module is marked as
  11. # installed. In js web will only load qweb coming from modules
  12. # that are returned by the backend in module_boot. Without
  13. # this you end up with js, css but no qweb.
  14. self.env["ir.module.module"].search(
  15. [("name", "=", "mail_all")], limit=1
  16. ).state = "installed"
  17. link = "/web#action=%s" % self.ref("mail.action_discuss")
  18. self.phantom_js(
  19. link,
  20. "odoo.__DEBUG__.services['web_tour.tour'].run('tour_mail_all', 1000)",
  21. "odoo.__DEBUG__.services['web_tour.tour'].tours.tour_mail_all.ready",
  22. login="admin",
  23. )