summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/tests/test_js.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/point_of_sale/tests/test_js.py
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/point_of_sale/tests/test_js.py')
-rw-r--r--addons/point_of_sale/tests/test_js.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/point_of_sale/tests/test_js.py b/addons/point_of_sale/tests/test_js.py
new file mode 100644
index 00000000..560e4d40
--- /dev/null
+++ b/addons/point_of_sale/tests/test_js.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+import odoo.addons.web.tests.test_js
+import odoo.tests
+
+
+@odoo.tests.tagged("post_install", "-at_install")
+class WebSuite(odoo.tests.HttpCase):
+ def setUp(self):
+ super().setUp()
+ env = self.env(user=self.env.ref('base.user_admin'))
+ self.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_session_cb(check_coa=False)
+
+ # point_of_sale desktop test suite
+ self.browser_js(
+ "/pos/ui/tests?mod=web&failfast", "", "", login="admin", timeout=1800
+ )