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.

22 lines
878 B

  1. # -*- coding: utf-8 -*-
  2. import openerp.tests
  3. @openerp.tests.common.at_install(False)
  4. @openerp.tests.common.post_install(True)
  5. class TestUi(openerp.tests.HttpCase):
  6. # TODO test returns error "Timeout after 10000 ms"
  7. # def test_01_res_partner_mails_to_count(self):
  8. # self.phantom_js('/', "openerp.Tour.run('mails_count_tour', 'test')", "openerp.Tour.tours.mails_count_tour", login="admin")
  9. def test_02_res_partner_mails_from_count(self):
  10. # wait till page loaded and then click and wait again
  11. code = """
  12. setTimeout(function () {
  13. $(".mails_from").click();
  14. setTimeout(function () {console.log('ok');}, 3000);
  15. }, 3000);
  16. """
  17. link = '/web#id=3&view_type=form&model=res.partner'
  18. self.phantom_js(link, code, "openerp.Tour.tours.mails_count_tour", login="admin")