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.

19 lines
715 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr>
  3. # License MIT (https://opensource.org/licenses/MIT).
  4. import odoo.tests
  5. @odoo.tests.common.at_install(True)
  6. @odoo.tests.common.post_install(True)
  7. class TestUi(odoo.tests.HttpCase):
  8. def test_pos_keyboard(self):
  9. # without a delay there might be problems on the steps whilst opening a POS
  10. # caused by a not yet loaded button's action
  11. self.phantom_js(
  12. "/web",
  13. "odoo.__DEBUG__.services['web_tour.tour'].run('pos_keyboard_tour', 500)",
  14. "odoo.__DEBUG__.services['web_tour.tour'].tours.pos_keyboard_tour.ready",
  15. login="admin",
  16. )