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.

20 lines
796 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([('name', '=', 'mail_to')], limit=1).state = 'installed'
  12. cr.release()
  13. self.phantom_js("/web",
  14. "odoo.__DEBUG__.services['web_tour.tour'].run('mail_to_tour', 1000)",
  15. "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_to_tour.ready",
  16. login="admin", timeout=200)