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.

28 lines
1.1 KiB

  1. # Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
  2. # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
  3. # License MIT (https://opensource.org/licenses/MIT).
  4. import odoo.tests
  5. @odoo.tests.common.at_install(True)
  6. @odoo.tests.common.post_install(True)
  7. class TestUi(odoo.tests.HttpCase):
  8. def test_01_mail_private(self):
  9. # needed because tests are run before the module is marked as
  10. # installed. In js web will only load qweb coming from modules
  11. # that are returned by the backend in module_boot. Without
  12. # this you end up with js, css but no qweb.
  13. cr = self.registry.cursor()
  14. self.env["ir.module.module"].search(
  15. [("name", "=", "mail_private")], limit=1
  16. ).state = "installed"
  17. cr._lock.release()
  18. self.phantom_js(
  19. "/web",
  20. "odoo.__DEBUG__.services['web_tour.tour'].run('mail_private_tour', 1000)",
  21. "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_private_tour.ready",
  22. login="admin",
  23. timeout=90,
  24. )