diff --git a/pos_access_right/tests/test_load_ui.py b/pos_access_right/tests/test_load_ui.py index ee28c3d401..cfc82946e2 100644 --- a/pos_access_right/tests/test_load_ui.py +++ b/pos_access_right/tests/test_load_ui.py @@ -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)