summaryrefslogtreecommitdiff
path: root/addons/project/tests
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-04-01 16:10:54 +0000
committerSébastien Theys <seb@odoo.com>2019-04-04 08:44:59 +0000
commitdf7326f0be88baa9aa12543f003f9e31a1e3307f (patch)
tree322f8df145db26d3638d283079cacbd69812172f /addons/project/tests
parent7529bd35fab88759769187c331f46db960b321fa (diff)
[IMP] tests, *: add start_tour helper
Before this commit, the syntax to start a tour was extremely verbose. With this new method, it is possible to start a tour by just giving the essential parameter: the tour name. The full set of features from browser_js are kept by using **kwargs. closes odoo/odoo#32316 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons/project/tests')
-rw-r--r--addons/project/tests/test_project_ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/tests/test_project_ui.py b/addons/project/tests/test_project_ui.py
index 2218e491838..9fd5ee2c273 100644
--- a/addons/project/tests/test_project_ui.py
+++ b/addons/project/tests/test_project_ui.py
@@ -7,4 +7,4 @@ import odoo.tests
class TestUi(odoo.tests.HttpCase):
def test_01_project_tour(self):
- self.phantom_js("/web", "odoo.__DEBUG__.services['web_tour.tour'].run('project_tour')", "odoo.__DEBUG__.services['web_tour.tour'].tours.project_tour.ready", login="admin")
+ self.start_tour("/web", 'project_tour', login="admin")