Skip to content

Commit

Permalink
[MIG] pos_access_right: Migration to 16.0 - unit test pos access righ…
Browse files Browse the repository at this point in the history
…t 2.
  • Loading branch information
jumeldi74 committed Jun 1, 2023
1 parent 0be2095 commit e38b0c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pos_access_right/tests/test_load_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ class TestLoadUI(HttpCase):
def setUpClass(cls):
super().setUpClass()
env = cls.env(user=cls.env.ref("base.user_admin"))
cls.main_pos_config = env.ref("point_of_sale.pos_config_main")
cls.main_pos_config = env["pos.config"].create(
{"name": "Test access right", "module_pos_hr": True}
)

def test_pos_js(self):
# open a session, the /pos/ui controller will redirect to it
self.main_pos_config.open_ui()
self.main_pos_config.write({"module_pos_hr": True})

# point_of_sale desktop test suite
self.browser_js("/pos/ui/tests?mod=web", "", "", login="admin", timeout=1800)

0 comments on commit e38b0c5

Please sign in to comment.