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.

18 lines
746 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr>
  3. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
  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("/web",
  12. "odoo.__DEBUG__.services['web_tour.tour'].run('pos_keyboard_tour', 100)",
  13. "odoo.__DEBUG__.services['web_tour.tour'].tours.pos_keyboard_tour.ready",
  14. login="admin")