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.

25 lines
832 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
  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_to(self):
  10. cr = self.registry.cursor()
  11. env = Environment(cr, self.uid, {})
  12. env["ir.module.module"].search(
  13. [("name", "=", "mail_to")], limit=1
  14. ).state = "installed"
  15. cr.release()
  16. self.phantom_js(
  17. "/web",
  18. "odoo.__DEBUG__.services['web_tour.tour'].run('mail_to_tour', 1000)",
  19. "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_to_tour.ready",
  20. login="admin",
  21. timeout=200,
  22. )