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.

30 lines
1.1 KiB

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
  3. # License MIT (https://opensource.org/licenses/MIT).
  4. import odoo.tests
  5. from odoo.api import Environment
  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_private(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. cr = self.registry.cursor()
  15. env = Environment(cr, self.uid, {})
  16. env["ir.module.module"].search(
  17. [("name", "=", "mail_private")], limit=1
  18. ).state = "installed"
  19. cr.release()
  20. self.phantom_js(
  21. "/web",
  22. "odoo.__DEBUG__.services['web_tour.tour'].run('mail_private_tour', 1000)",
  23. "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_private_tour.ready",
  24. login="admin",
  25. timeout=70,
  26. )