summaryrefslogtreecommitdiff
path: root/addons/test_mail/tests/test_ui.py
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-11-26 16:14:47 +0000
committerAlexandre Kühn <aku@odoo.com>2018-11-26 16:26:34 +0000
commit9df8e880468bca0873b2d4628d8300fdf1e4fb18 (patch)
tree2cad264b4f7adb3a053dedb46ca139a893cb012e /addons/test_mail/tests/test_ui.py
parent00bf6709a8cf10100ae04d5b60b0528d72dc276b (diff)
[FIX] mail, test_mail: make `mail_tour` work
This tour was broken since the following refactoring: https://github.com/odoo/odoo/commit/cd34f6de727d5b3858420cff3c9d3c5995c4e75c With this commit, mail_tour should work correctly, and is automatically run on runbot. Note that the tour is automatically run in the module `test_mail`, so that the tips are not displayed by installing Discuss. Task-ID 1912730 closes odoo/odoo#29040
Diffstat (limited to 'addons/test_mail/tests/test_ui.py')
-rw-r--r--addons/test_mail/tests/test_ui.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/test_mail/tests/test_ui.py b/addons/test_mail/tests/test_ui.py
new file mode 100644
index 00000000000..f3f38d8a8c4
--- /dev/null
+++ b/addons/test_mail/tests/test_ui.py
@@ -0,0 +1,10 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+import odoo.tests
+
+
+@odoo.tests.tagged('post_install', '-at_install')
+class TestUi(odoo.tests.HttpCase):
+
+ def test_01_project_tour(self):
+ self.phantom_js("/web", "odoo.__DEBUG__.services['web_tour.tour'].run('mail_tour')", "odoo.__DEBUG__.services['web_tour.tour'].tours.mail_tour.ready", login="admin")