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.

21 lines
820 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
  3. # License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
  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([('name', '=', 'mail_to')], limit=1).state = 'installed'
  13. cr.release()
  14. self.phantom_js("/web",
  15. "odoo.__DEBUG__.services['web_tour.tour'].run('mail_to_tour', 1000)",
  16. "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_to_tour.ready",
  17. login="admin", timeout=200)