summaryrefslogtreecommitdiff
path: root/addons/portal/tests
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-06-07 18:13:11 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-08 14:58:49 +0200
commitea27c1b7a341b6f913197a2e8843562c5e71ea52 (patch)
treeedff4bb4b14ba7afea08ce0c92ba609aa5d314fa /addons/portal/tests
parent86aa1b81bcc7452e42c84a995479a59440dab956 (diff)
[MOV] website_portal, portal: move customer portal to portal module
This commit moves the whole customer portal to the portal module. It now completely uses portal and http_routing features and is not dependent on website anymore. An override of web controller is added in portal in order to redirect portal users to /my instead of /web. That way once having the customer portal installed all share users are correctly redirected to their account. All modules defining customer portal templates and controllers are updated accordingly.
Diffstat (limited to 'addons/portal/tests')
-rw-r--r--addons/portal/tests/__init__.py5
-rw-r--r--addons/portal/tests/test_load_process.py15
2 files changed, 20 insertions, 0 deletions
diff --git a/addons/portal/tests/__init__.py b/addons/portal/tests/__init__.py
new file mode 100644
index 00000000000..279e43d2034
--- /dev/null
+++ b/addons/portal/tests/__init__.py
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from . import test_load_process
+from . import test_portal
diff --git a/addons/portal/tests/test_load_process.py b/addons/portal/tests/test_load_process.py
new file mode 100644
index 00000000000..344d8bec7a9
--- /dev/null
+++ b/addons/portal/tests/test_load_process.py
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+import odoo.tests
+
+
+@odoo.tests.common.at_install(False)
+@odoo.tests.common.post_install(True)
+class TestUi(odoo.tests.HttpCase):
+ def test_01_portal_load_tour(self):
+ self.phantom_js(
+ "/",
+ "odoo.__DEBUG__.services['web_tour.tour'].run('portal_load_homepage')",
+ "odoo.__DEBUG__.services['web_tour.tour'].tours.portal_load_homepage.ready",
+ login="portal"
+ )