-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] pos_access_right: Migration to 16.0 - unit test pos access right.
- Loading branch information
Showing
3 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import test_pos_access_right | ||
from . import test_load_ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from odoo.tests import HttpCase, tagged | ||
|
||
|
||
@tagged("post_install", "-at_install") | ||
class TestLoadUI(HttpCase): | ||
@classmethod | ||
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") | ||
|
||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters