[IMP] tests, *: add start_tour helper

Enterprise counterpart of https://github.com/odoo/odoo/pull/32316

closes odoo/enterprise#3987

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
Sébastien Theys
2019-04-04 08:45:38 +00:00
parent baef90d31d
commit 1b8b76cf7a
+3 -3
View File
@@ -7,6 +7,6 @@ import odoo.tests
@odoo.tests.tagged('post_install','-at_install')
class TestWebsiteFormEditor(odoo.tests.HttpCase):
def test_tour(self):
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('website_form_editor_tour')", "odoo.__DEBUG__.services['web_tour.tour'].tours.website_form_editor_tour.ready", login="admin")
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('website_form_editor_tour_submit')", "odoo.__DEBUG__.services['web_tour.tour'].tours.website_form_editor_tour_submit.ready")
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('website_form_editor_tour_results')", "odoo.__DEBUG__.services['web_tour.tour'].tours.website_form_editor_tour_results.ready", login="admin")
self.start_tour("/", 'website_form_editor_tour', login="admin")
self.start_tour("/", 'website_form_editor_tour_submit')
self.start_tour("/", 'website_form_editor_tour_results', login="admin")