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.

24 lines
816 B

  1. # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
  2. # License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
  3. import odoo.tests
  4. from odoo.api import Environment
  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_to(self):
  9. cr = self.registry.cursor()
  10. env = Environment(cr, self.uid, {})
  11. env["ir.module.module"].search(
  12. [("name", "=", "mail_to")], limit=1
  13. ).state = "installed"
  14. cr.release()
  15. self.phantom_js(
  16. "/web",
  17. "odoo.__DEBUG__.services['web_tour.tour'].run('mail_to_tour', 1000)",
  18. "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_to_tour.ready",
  19. login="admin",
  20. timeout=200,
  21. )