This will improve the testing of the onboarding tour - earlier when we change the class and don't update the class in the tour it goes unnoticed - to prevent failure of the tour we called onboarding tour from python to test the flow - Because it helps users to understand the flow so we can let the tour fail task-3235684 closes odoo/odoo#115672 Related: odoo/enterprise#38333 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
19 lines
593 B
Python
19 lines
593 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo.tests import HttpCase, tagged
|
|
|
|
@tagged('post_install', '-at_install')
|
|
class TestProjectUpdateUi(HttpCase):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
|
|
# Enable the "Milestones" feature to be able to create milestones on this tour.
|
|
cls.env['res.config.settings'] \
|
|
.create({'group_project_milestone': True}) \
|
|
.execute()
|
|
|
|
def test_01_project_tour(self):
|
|
self.start_tour("/web", 'project_update_tour', login="admin")
|
|
self.start_tour("/web", 'project_tour', login="admin")
|