summaryrefslogtreecommitdiff
path: root/addons/crm/tests/test_crm_ui.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/crm/tests/test_crm_ui.py
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/crm/tests/test_crm_ui.py')
-rw-r--r--addons/crm/tests/test_crm_ui.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/crm/tests/test_crm_ui.py b/addons/crm/tests/test_crm_ui.py
new file mode 100644
index 00000000..116163f2
--- /dev/null
+++ b/addons/crm/tests/test_crm_ui.py
@@ -0,0 +1,24 @@
+# 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_crm_tour(self):
+ self.start_tour("/web", 'crm_tour', login="admin")
+
+ def test_02_crm_tour_rainbowman(self):
+ # we create a new user to make sure he gets the 'Congrats on your first deal!'
+ # rainbowman message.
+ self.env['res.users'].create({
+ 'name': 'Temporary CRM User',
+ 'login': 'temp_crm_user',
+ 'password': 'temp_crm_user',
+ 'groups_id': [(6, 0, [
+ self.ref('base.group_user'),
+ self.ref('sales_team.group_sale_salesman')
+ ])]
+ })
+ self.start_tour("/web", 'crm_rainbowman', login="temp_crm_user")